1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 13:41:15 +02:00
nix/tests/add.sh
2006-03-01 15:43:37 +00:00

13 lines
188 B
Bash

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)"