about summary refs log blame commit diff
path: root/tests/build-hook.sh
blob: 681f65cc3b6cd704f1ce07d3f1a09b619e4cb6d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                
                                          
 
                                                 




                                            
source common.sh

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

outPath=$(nix-build build-hook.nix --no-out-link)

echo "output path is $outPath"

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