nix build: Don't create output links with --dry-run.

Fixes #1849.
This commit is contained in:
Will Dietz
2018-02-07 15:20:54 -06:00
parent 3780435a0e
commit 98031b6050
+2
View File
@@ -52,6 +52,8 @@ struct CmdBuild : MixDryRun, InstallablesCommand
{
auto buildables = toBuildables(store, dryRun ? DryRun : Build, installables);
if (dryRun) return;
for (size_t i = 0; i < buildables.size(); ++i) {
auto & b(buildables[i]);