about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-20T11·32+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-20T11·32+0000
commit7f0ed370da62b867d90ba5346f4b9f217fbbe10f (patch)
treea7b62d2cda108f60f7197fb84732a420d83e55fb /scripts
parentdbf547645d26baee030d7db0535e0c0be72c13cc (diff)
* Use $(storedir) instead of $(prefix)/store.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nix-collect-garbage.in2
-rw-r--r--scripts/nix-prefetch-url.in4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/nix-collect-garbage.in b/scripts/nix-collect-garbage.in
index 1effc14d6757..a3ee7bd5ee33 100755
--- a/scripts/nix-collect-garbage.in
+++ b/scripts/nix-collect-garbage.in
@@ -4,7 +4,7 @@ use strict;
 use IPC::Open2;
 
 my $linkdir = "@localstatedir@/nix/profiles";
-my $storedir = "@prefix@/store";
+my $storedir = "@storedir@";
 
 my %alive;
 
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.