diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-17 19:45:21 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-01-18 14:08:49 +0100 |
commit | 4dda1f92aae05dd9d633152458d65a3815bcd03c (patch) | |
tree | 84260b953cb80933b0a10a6db52dd2c9dfde5668 /src/nix/copy.cc | |
parent | 6448ea84ab537600d3f350867063bc305b3bb910 (diff) |
Add command 'nix store copy-log'
Fixes #5222.
Diffstat (limited to 'src/nix/copy.cc')
-rw-r--r-- | src/nix/copy.cc | 6 |
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) { |