diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2020-06-29 10:05:44 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2020-07-31 17:17:03 +0200 |
commit | 5a09eb86f17b7949b93724ecb51f1b909ea68592 (patch) | |
tree | 246a7ac2bbcfc0d663361901ef6bb8a92050813e /src/nix/installables.cc | |
parent | 17f75f9cc4dd70e3e6de7e266ef2bd18a0da310b (diff) |
nix/build: add `--rebuild` option
Occasionally, `nix-build --check` is fairly helpful and I'd like to be
able to use this feature for flakes that need to be built with `nix
build` as well.
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r-- | src/nix/installables.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc index a13e5a3df..56c62dbfe 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -642,7 +642,7 @@ std::shared_ptr<Installable> SourceExprCommand::parseInstallable( } Buildables build(ref<Store> store, Realise mode, - std::vector<std::shared_ptr<Installable>> installables) + std::vector<std::shared_ptr<Installable>> installables, BuildMode bMode) { if (mode == Realise::Nothing) settings.readOnlyMode = true; @@ -668,7 +668,7 @@ Buildables build(ref<Store> store, Realise mode, if (mode == Realise::Nothing) printMissing(store, pathsToBuild, lvlError); else if (mode == Realise::Outputs) - store->buildPaths(pathsToBuild); + store->buildPaths(pathsToBuild, bMode); return buildables; } |