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

Fixes #1849.
This commit is contained in:
Will Dietz 2018-02-07 14:58:38 -06:00
parent 3780435a0e
commit 98031b6050

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]);