diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2016-12-07T12·43+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2016-12-07T12·43+0100 |
commit | cea4e2c618fcf0111da2dcacc023d2a7a32ee15b (patch) | |
tree | 8131569cb5c1646a4751c684130962de0bd770e2 /src/nix-store | |
parent | 8bdf83f936adae6f2c907a6d2541e80d4120f051 (diff) |
Expose enforce-determinism and the result to Hydra
Diffstat (limited to 'src/nix-store')
-rw-r--r-- | src/nix-store/nix-store.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 77ad517a7170..6ab62f53a2ae 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -840,8 +840,10 @@ static void opServe(Strings opFlags, Strings opArgs) settings.buildTimeout = readInt(in); if (GET_PROTOCOL_MINOR(clientVersion) >= 2) settings.maxLogSize = readInt(in); - if (GET_PROTOCOL_MINOR(clientVersion) >= 3) + 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.printRepeatedBuilds = false; }; @@ -958,6 +960,9 @@ static void opServe(Strings opFlags, Strings opArgs) out << status.status << status.errorMsg; + if (GET_PROTOCOL_MINOR(clientVersion) >= 3) + out << status.timesBuilt << status.isNonDeterministic; + break; } |