2006-03-01 12:15:33 +00:00
|
|
|
source common.sh
|
|
|
|
|
2014-07-11 14:20:12 +00:00
|
|
|
export NIX_BUILD_HOOK="$(pwd)/build-hook.hook.sh"
|
2004-05-12 09:35:51 +00:00
|
|
|
|
2012-09-11 23:14:15 +00:00
|
|
|
outPath=$(nix-build build-hook.nix --no-out-link)
|
2004-05-12 09:35:51 +00:00
|
|
|
|
|
|
|
echo "output path is $outPath"
|
|
|
|
|
|
|
|
text=$(cat "$outPath"/foobar)
|
|
|
|
if test "$text" != "BARBAR"; then exit 1; fi
|