2004-05-13 21:14:49 +02:00
|
|
|
export NIX_BUILD_HOOK="build-hook.hook.sh"
|
2004-05-12 11:35:51 +02:00
|
|
|
|
|
|
|
storeExpr=$($TOP/src/nix-instantiate/nix-instantiate build-hook.nix)
|
|
|
|
|
|
|
|
echo "store expr is $storeExpr"
|
|
|
|
|
2005-01-25 12:55:43 +01:00
|
|
|
outPath=$($TOP/src/nix-store/nix-store -quf "$storeExpr")
|
2004-05-12 11:35:51 +02:00
|
|
|
|
|
|
|
echo "output path is $outPath"
|
|
|
|
|
|
|
|
text=$(cat "$outPath"/foobar)
|
|
|
|
if test "$text" != "BARBAR"; then exit 1; fi
|