1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Revert old useBuildHook behaviour

This commit is contained in:
Eelco Dolstra 2014-07-19 02:25:47 +02:00
parent 2e77bd70fa
commit ee3c5d7916
3 changed files with 3 additions and 3 deletions

View file

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