aboutsummaryrefslogtreecommitdiff
path: root/tests/build-hook.sh
blob: b9de0099365476df6ce0f54be7e33dcc6ea2fb85 (plain)
1
2
3
4
5
6
7
8
9
10
source common.sh

export NIX_BUILD_HOOK="build-hook.hook.sh"

outPath=$($nixbuild build-hook.nix)

echo "output path is $outPath"

text=$(cat "$outPath"/foobar)
if test "$text" != "BARBAR"; then exit 1; fi