about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-02T10·07+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-02T10·07+0200
commit70581b63633016329789872c73dc48b1d498c729 (patch)
tree7b36940d18dc05ecd3f5cd41426ee2dd40a063d3
parentfeefcb3a982d3e3b8e89798d72d8afa996169569 (diff)
Fix build hook test
-rw-r--r--tests/build-hook.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/build-hook.sh b/tests/build-hook.sh
index ef77a3ae5285..2005c7cebdc4 100644
--- a/tests/build-hook.sh
+++ b/tests/build-hook.sh
@@ -1,8 +1,8 @@
 source common.sh
 
-export NIX_BUILD_HOOK="$(pwd)/build-hook.hook.sh"
+clearStore
 
-outPath=$(nix-build build-hook.nix --no-out-link)
+outPath=$(nix-build build-hook.nix --no-out-link --option build-hook $(pwd)/build-hook.hook.sh)
 
 echo "output path is $outPath"