diff --git a/corepkgs/nar/nar.sh.in b/corepkgs/nar/nar.sh.in index d216685537..9f96b03ab3 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 bb5e6da134..e51f903b87 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);