diff options
Diffstat (limited to 'src/nix/build.cc')
-rw-r--r-- | src/nix/build.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc index 03159b6cc..226c551fa 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -54,6 +54,8 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile { auto buildables = build(store, dryRun ? Realise::Nothing : Realise::Outputs, installables, buildMode); + if (json) logger->cout("%s", derivedPathsWithHintsToJSON(buildables, store).dump()); + if (dryRun) return; if (outLink != "") @@ -79,8 +81,6 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile } updateProfile(buildables); - - if (json) logger->cout("%s", derivedPathsWithHintsToJSON(buildables, store).dump()); } }; |