diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc index 596034c0f4c3..2bef26b2d666 100644 --- a/src/libstore/build/derivation-goal.cc +++ b/src/libstore/build/derivation-goal.cc @@ -911,8 +911,15 @@ void DerivationGoal::buildDone() msg += line; msg += "\n"; } - msg += fmt("For full logs, run '" ANSI_BOLD "nix log %s" ANSI_NORMAL "'.", - worker.store.printStorePath(drvPath)); + msg += "For full logs, run '" ANSI_BOLD; + if (experimentalFeatureSettings.isEnabled(Xp::NixCommand)) { + msg += "nix log"; + } else { + msg += "nix-store -l"; + } + msg += " "; + msg += worker.store.printStorePath(drvPath); + msg += ANSI_NORMAL "'."; } if (diskFull)