From dcbdd0ad2687883a990cf3d236134499face5566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Mon, 4 Jul 2011 13:55:02 +0000 Subject: [PATCH] hydra_build.pl: Honor `$build->timeout'. --- src/script/hydra_build.pl.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/script/hydra_build.pl.in b/src/script/hydra_build.pl.in index 96c64dea..2b43d562 100755 --- a/src/script/hydra_build.pl.in +++ b/src/script/hydra_build.pl.in @@ -235,7 +235,9 @@ sub doBuild { # Run Nix to perform the build, and monitor the stderr output # to get notifications about specific build steps, the # associated log files, etc. + # Note: `--timeout' was added in Nix 1.0pre27564, June 2011. my $cmd = "nix-store --realise $drvPath " . + "--timeout $timeout " . "--max-silent-time $maxsilent --keep-going --fallback " . "--no-build-output --log-type flat --print-build-trace " . "--add-root " . gcRootFor $outPath . " 2>&1";