diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-11-20T15·44+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-11-20T15·44+0000 |
commit | 4213b8d8ec8cf478e43b0ec3dc4068e5e55f097a (patch) | |
tree | 2b95c8d933bae74c21d06ba7149d2ec1ab8924b0 /scripts/copy-from-other-stores.pl.in | |
parent | eb86b6f5a5429075866eca40d3cc4b864e7499ae (diff) |
* Urgh.
Diffstat (limited to 'scripts/copy-from-other-stores.pl.in')
-rw-r--r-- | scripts/copy-from-other-stores.pl.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/copy-from-other-stores.pl.in b/scripts/copy-from-other-stores.pl.in index 5b695ea1a66e..8f0ff4ca8df8 100644 --- a/scripts/copy-from-other-stores.pl.in +++ b/scripts/copy-from-other-stores.pl.in @@ -4,6 +4,9 @@ use strict; use File::Basename; use IO::Handle; +my $binDir = $ENV{"NIX_BIN_DIR"} || "@bindir@"; + + STDOUT->autoflush(1); my @remoteStoresAll = split ':', ($ENV{"NIX_OTHER_STORES"} or ""); @@ -87,7 +90,7 @@ elsif ($ARGV[0] eq "--substitute") { (my $infoFile, my $sourcePath) = findStorePath $storePath; die unless $infoFile; print "\n*** Copying `$storePath' from `$sourcePath'\n\n"; - system("@bindir@/nix-store --dump $sourcePath | @bindir@/nix-store --restore $storePath") == 0 + system("$binDir/nix-store --dump $sourcePath | $binDir/nix-store --restore $storePath") == 0 or die "cannot copy `$sourcePath' to `$storePath'"; } |