about summary refs log tree commit diff
path: root/tests/init.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-07-25T07·25+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-07-25T07·25+0000
commit33efb52e022a815d88f79e31edd5209837cbee3c (patch)
tree80ebf0054baa8848f507f6ff90f9e438afdf5826 /tests/init.sh
parent3fae65d4ccea78eeb0aef5acb4b613a0547a4c6d (diff)
* Hack to get around the libtool wrapper script around nix-store not
  working when PATH is unset.

Diffstat (limited to 'tests/init.sh')
-rw-r--r--tests/init.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 435fc37276aa..c3a7aac29f16 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -56,6 +56,11 @@ for i in \
     chmod +x $i
 done
 
+# Another ugly hack.
+sed "s|^$|PATH=$PATH|" < $NIX_DATA_DIR/nix/corepkgs/nar/nar.sh > tmp
+chmod +x tmp
+mv tmp $NIX_DATA_DIR/nix/corepkgs/nar/nar.sh
+
 # Initialise the database.
 $TOP/src/nix-store/nix-store --init