about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-04T12·55+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-04T12·55+0200
commitb190f771e7e23db363f7cb40db0e538557bbea30 (patch)
tree0f1c8e864810b2d2e36c3ee6de49dd2b2cd69568 /scripts
parent07d7e7df84bf9bc381fbe56137bc47f5db7763ca (diff)
copy-from-other-stores: Use cp
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/copy-from-other-stores.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/copy-from-other-stores.pl.in b/scripts/copy-from-other-stores.pl.in
index 8ce5a9d404..9b0615fe1a 100755
--- a/scripts/copy-from-other-stores.pl.in
+++ b/scripts/copy-from-other-stores.pl.in
@@ -94,7 +94,7 @@ elsif ($ARGV[0] eq "--substitute") {
     my ($store, $sourcePath) = findStorePath $storePath;
     die unless $store;
     print STDERR "\n*** Copying ‘$storePath’ from ‘$sourcePath’\n\n";
-    system("$binDir/nix-store --dump $sourcePath | $binDir/nix-store --restore $destPath") == 0
+    system("@coreutils@/cp", "-rpd", $sourcePath, $destPath) == 0
         or die "cannot copy ‘$sourcePath’ to ‘$storePath’";
     print "\n"; # no hash to verify
 }