From 9912c6a2d2468f524486872a5224891b947fcc10 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 21 Jan 2026 19:27:59 -0500 Subject: [PATCH] buildMozillaMach: increase hydra timeout to 1d on darwin With lto enabled for darwin, we now observe timeouts in Hydra [1]. Looks like the default timeout is ~4h, and usually builds succeeds in a few hours, so 1d should be more than enough to complete a build, even with heavy node load. [1] https://hydra.nixos.org/build/319560484 --- pkgs/build-support/build-mozilla-mach/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/build-mozilla-mach/default.nix b/pkgs/build-support/build-mozilla-mach/default.nix index 5117b979f686..73d1ccef9574 100644 --- a/pkgs/build-support/build-mozilla-mach/default.nix +++ b/pkgs/build-support/build-mozilla-mach/default.nix @@ -293,7 +293,14 @@ buildStdenv.mkDerivation { pname = "${pname}-unwrapped"; version = packageVersion; - inherit src unpackPhase meta; + inherit src unpackPhase; + + meta = + meta + // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # MacOS builds may take a long time and sometimes hit the default timeout + timeout = lib.max (24 * 60 * 60) (meta.timeout or 0); + }; outputs = [ "out"