blob: b6ae3ebea4eac16cc475d8277162cd6be45ba6f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
source common.sh
file=./add.sh
path=$($nixstore --add $file)
echo $path
hash=$($nixstore -q --hash $path)
echo $hash
test "$hash" = "sha256:$(nix-hash --type sha256 --base32 $file)"
|