diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build.cc | 2 | ||||
-rw-r--r-- | src/libstore/globals.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc index d59470603295..4376a8322c42 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -1505,7 +1505,7 @@ void DerivationGoal::buildDone() HookReply DerivationGoal::tryBuildHook() { - if (!settings.useBuildHook) return rpDecline; + if (!settings.useBuildHook || getEnv("NIX_BUILD_HOOK") == "") return rpDecline; if (!worker.hook) worker.hook = std::shared_ptr<HookInstance>(new HookInstance); diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 2bfebb77a130..28982ec15078 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -39,7 +39,7 @@ Settings::Settings() thisSystem = SYSTEM; maxSilentTime = 0; buildTimeout = 0; - useBuildHook = getEnv("NIX_BUILD_HOOK") != ""; + useBuildHook = true; printBuildTrace = false; reservedSize = 1024 * 1024; fsyncMetadata = true; |