aboutsummaryrefslogtreecommitdiff
path: root/src/nix/copy.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-01-17 19:45:21 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-01-18 14:08:49 +0100
commit4dda1f92aae05dd9d633152458d65a3815bcd03c (patch)
tree84260b953cb80933b0a10a6db52dd2c9dfde5668 /src/nix/copy.cc
parent6448ea84ab537600d3f350867063bc305b3bb910 (diff)
Add command 'nix store copy-log'
Fixes #5222.
Diffstat (limited to 'src/nix/copy.cc')
-rw-r--r--src/nix/copy.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc
index 9f7cef304..8730a9a5c 100644
--- a/src/nix/copy.cc
+++ b/src/nix/copy.cc
@@ -4,7 +4,7 @@
using namespace nix;
-struct CmdCopy : CopyCommand
+struct CmdCopy : virtual CopyCommand, virtual BuiltPathsCommand
{
CheckSigsFlag checkSigs = CheckSigs;
@@ -45,8 +45,10 @@ struct CmdCopy : CopyCommand
Category category() override { return catSecondary; }
- void run(ref<Store> srcStore, ref<Store> dstStore, BuiltPaths && paths) override
+ void run(ref<Store> srcStore, BuiltPaths && paths) override
{
+ auto dstStore = getDstStore();
+
RealisedPath::Set stuffToCopy;
for (auto & builtPath : paths) {