about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--corepkgs/nar/nar.sh.in2
-rw-r--r--scripts/nix-push.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in
index d21668553777..9f96b03ab314 100644
--- a/corepkgs/nar/nar.sh.in
+++ b/corepkgs/nar/nar.sh.in
@@ -1,5 +1,7 @@
 #! /bin/sh
 
+export PATH=/bin:/usr/bin
+
 echo "packing $path into $out..."
 mkdir $out || exit 1
 tmp=$out/tmp
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index bb5e6da134f4..e51f903b87fe 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -52,7 +52,7 @@ foreach my $id (@ARGV) {
         # Construct a Fix expression that creates a Nix archive.
         my $fixexpr = 
           "App(IncludeFix(\"nar/nar.fix\"), " .
-          "[ (\"path\", Slice([\"$pathid\"], [(\"$path\", \"$pathid\", [])]))" .
+          "[ (\"path\", Slice([\"$path\"], [(\"$path\", \"$pathid\", [])]))" .
           "])";
 	
 	print FIX "," unless ($first);