1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

* Use $(storedir) instead of $(prefix)/store.

This commit is contained in:
Eelco Dolstra 2004-02-20 11:32:30 +00:00
parent dbf547645d
commit 7f0ed370da
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ defined $url or die;
print "fetching $url...\n";
my $out = "@prefix@/store/nix-prefetch-url-$$";
my $out = "@storedir@/nix-prefetch-url-$$";
system "@wget@ --passive-ftp '$url' -O '$out'";
$? == 0 or die "unable to fetch $url";
@ -19,7 +19,7 @@ chomp $hash;
print "file has hash $hash\n";
my $out2 = "@prefix@/store/nix-prefetch-url-$hash";
my $out2 = "@storedir@/nix-prefetch-url-$hash";
rename $out, $out2;
# Create a Nix expression.