mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 06:26:15 +02:00
13 lines
188 B
Bash
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:$($nixhash --type sha256 --base32 $file)"
|