* In nar.nix, path -> storePath, otherwise we get a collision between

environment variable names on Cygwin (where they are case
  insensitive).
This commit is contained in:
Eelco Dolstra 2006-08-07 18:22:57 +00:00
parent a61129c48c
commit 5a6b45e252
3 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,7 @@
{system, path, hashAlgo}: derivation {
{system, storePath, hashAlgo}:
derivation {
name = "nar";
builder = ./nar.sh;
inherit system path hashAlgo;
inherit system storePath hashAlgo;
}

View File

@ -1,9 +1,9 @@
#! @shell@ -e
echo "packing $path into $out..."
echo "packing $storePath into $out..."
@coreutils@/mkdir $out
dst=$out/tmp.nar.bz2
@bindir@/nix-store --dump "$path" > tmp
@bindir@/nix-store --dump "$storePath" > tmp
@bzip2@ < tmp > $dst

View File

@ -103,7 +103,7 @@ foreach my $storePath (@storePaths) {
# expression.
my $nixexpr =
"((import $dataDir/nix/corepkgs/nar/nar.nix) " .
"{path = \"$storePath\"; system = \"@system@\"; hashAlgo = \"$hashAlgo\";}) ";
"{storePath = \"$storePath\"; system = \"@system@\"; hashAlgo = \"$hashAlgo\";}) ";
print NIX $nixexpr;
}