about summary refs log tree commit diff
path: root/corepkgs/nar
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2005-03-15T12·03+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2005-03-15T12·03+0000
commitbacd3a6cfa3af1879ef01e693178c74839d66f70 (patch)
treeadbe45ebcc229c82bd60c54500734f9700825716 /corepkgs/nar
parente52ae1c0ffed6af893438cb456c5c38a272c8b21 (diff)
* Purify all corepkgs builders.
Diffstat (limited to 'corepkgs/nar')
-rw-r--r--corepkgs/nar/nar.sh.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in
index 1a7c33ab26dd..caa960877b4b 100644
--- a/corepkgs/nar/nar.sh.in
+++ b/corepkgs/nar/nar.sh.in
@@ -1,10 +1,7 @@
 #! @shell@ -e
 
-# !!! impure; fix this
-export PATH=/bin:/usr/bin
-
 echo "packing $path into $out..."
-mkdir $out
+@coreutils@/mkdir $out
 dst=$out/tmp.nar.bz2
 @bindir@/nix-store --dump "$path" > tmp
 
@@ -14,4 +11,4 @@ dst=$out/tmp.nar.bz2
 
 @bindir@/nix-hash --flat --type $hashAlgo --base32 $dst > $out/narbz2-hash
 
-mv $out/tmp.nar.bz2 $out/$(cat $out/narbz2-hash).nar.bz2
+@coreutils@/mv $out/tmp.nar.bz2 $out/$(@coreutils@/cat $out/narbz2-hash).nar.bz2