2006-03-01 13:15:33 +01:00
|
|
|
source common.sh
|
|
|
|
|
2004-05-13 21:14:49 +02:00
|
|
|
export NIX_BUILD_HOOK="build-hook.hook.sh"
|
2004-05-12 11:35:51 +02:00
|
|
|
|
2012-09-12 01:14:15 +02:00
|
|
|
outPath=$(nix-build build-hook.nix --no-out-link)
|
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
|