blob: bd74e42fe36626531b5475f14741c101be5c8346 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
export NIX_BUILD_HOOK="sh 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 -qnfvvvvv "$storeExpr")
echo "output path is $outPath"
text=$(cat "$outPath"/foobar)
if test "$text" != "BARBAR"; then exit 1; fi
|