diff options
Diffstat (limited to 'scripts/nix-prefetch-url.in')
-rw-r--r-- | scripts/nix-prefetch-url.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in index 71ba3caab947..6cc3b7a26706 100644 --- a/scripts/nix-prefetch-url.in +++ b/scripts/nix-prefetch-url.in @@ -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. |