about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-12-07T16·57+0100
committerEelco Dolstra <edolstra@gmail.com>2016-12-07T16·57+0100
commit9a313469a4bdea2d1e8df24d16289dc2a172a169 (patch)
tree1674c3189b76b751f4e9c2b03486e59e8849c701 /src/nix-store
parentb07060688a298abe765bca4258de4c675b24a364 (diff)
Add a hook to run diffoscope when non-determinism is detected
Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/nix-store.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index f81cff4accd3..c1e6afef0e50 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -843,6 +843,7 @@ static void opServe(Strings opFlags, Strings opArgs)
         if (GET_PROTOCOL_MINOR(clientVersion) >= 3) {
             settings.set("build-repeat", std::to_string(readInt(in)));
             settings.set("enforce-determinism", readInt(in) != 0 ? "true" : "false");
+            settings.set("run-diff-hook", "true");
         }
         settings.printRepeatedBuilds = false;
     };