aboutsummaryrefslogtreecommitdiff
path: root/src/nix-copy-closure/nix-copy-closure.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-07-16 09:37:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-07-22 09:59:51 +0200
commite9848beca704d27a13e28b4403251725bd485bb2 (patch)
tree560b21607427e1a4c8af5a06f5391f7dfb7bf15d /src/nix-copy-closure/nix-copy-closure.cc
parent2ff3035cf4d5167d180878d69cb47b31890a24c4 (diff)
nix-build: Copy drv closure between eval store and build store
Diffstat (limited to 'src/nix-copy-closure/nix-copy-closure.cc')
-rwxr-xr-xsrc/nix-copy-closure/nix-copy-closure.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nix-copy-closure/nix-copy-closure.cc b/src/nix-copy-closure/nix-copy-closure.cc
index 02ccbe541..7c38e55e4 100755
--- a/src/nix-copy-closure/nix-copy-closure.cc
+++ b/src/nix-copy-closure/nix-copy-closure.cc
@@ -54,10 +54,7 @@ static int main_nix_copy_closure(int argc, char ** argv)
for (auto & path : storePaths)
storePaths2.insert(from->followLinksToStorePath(path));
- RealisedPath::Set closure;
- RealisedPath::closure(*from, storePaths2, closure);
-
- copyPaths(from, to, closure, NoRepair, NoCheckSigs, useSubstitutes);
+ copyClosure(from, to, storePaths2, NoRepair, NoCheckSigs, useSubstitutes);
return 0;
}