* nix-push generated invalid (old-style) slices.

* nar.sh needs a path.
This commit is contained in:
Eelco Dolstra 2003-08-28 10:10:12 +00:00
parent 31be53cd0a
commit c4f1f49574
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
#! /bin/sh
export PATH=/bin:/usr/bin
echo "packing $path into $out..."
mkdir $out || exit 1
tmp=$out/tmp

View file

@ -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);