aboutsummaryrefslogtreecommitdiff
path: root/src/nix/copy.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-29 15:51:45 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-29 15:51:45 +0200
commit9570036146b9bdbd66ce0b9f71479d0f56f3bf35 (patch)
treefff8a9ed2383a90573c56bf83d143255e1ba16be /src/nix/copy.cc
parent9c4e05766bb7f3776cfc5eb1a3da358419a65406 (diff)
nix copy: Build derivations
Fixes $ nix copy .#hydraJobs.vendoredCrates --to /tmp/nix error: path '/nix/store/...' is not valid
Diffstat (limited to 'src/nix/copy.cc')
-rw-r--r--src/nix/copy.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/copy.cc b/src/nix/copy.cc
index 66993ac21..23323a36e 100644
--- a/src/nix/copy.cc
+++ b/src/nix/copy.cc
@@ -40,6 +40,8 @@ struct CmdCopy : StorePathsCommand
.shortName('s')
.description("whether to try substitutes on the destination store (only supported by SSH)")
.set(&substitute, Substitute);
+
+ realiseMode = Build;
}
std::string description() override