mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
12 lines
313 B
Bash
12 lines
313 B
Bash
export NIX_BUILD_HOOK="build-hook.hook.sh"
|
|
|
|
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate build-hook.nix)
|
|
|
|
echo "store expr is $storeExpr"
|
|
|
|
outPath=$($TOP/src/nix-store/nix-store -quf "$storeExpr")
|
|
|
|
echo "output path is $outPath"
|
|
|
|
text=$(cat "$outPath"/foobar)
|
|
if test "$text" != "BARBAR"; then exit 1; fi
|