git.iko.soy/typeable/nixpkgs
on master help sign in
chromium: try to hack around Hydra problems

Discussion: https://github.com/NixOS/nixpkgs/commit/e8f1ddcbd1d

commit017561209e933f3de086e04211dc48cf37d1ee82 authorVladimír Čunát <vcunat@gmail.com> dateFri 1 Sep 2017, 12:24 (9 years ago) parent7b6251b
1 file changed+6−1
pkgs/applications/networking/browsers/chromium/common.nix+6−1
pkgs/applications/networking/browsers/chromium/common.nix+6−1
@@ -228,9 +228,14 @@ let
228228 '';
229229
230230 buildPhase = let
231+ # Build paralelism: on Hydra the build was frequently running into memory
232+ # exhaustion, and even other users might be running into similar issues.
233+ # -j is halved to avoid memory problems, and -l is slightly increased
234+ # so that the build gets slight preference before others
235+ # (it will often be on "critical path" and at risk of timing out)
231236 buildCommand = target: ''
232237 ninja -C "${buildPath}" \
233− -j$NIX_BUILD_CORES -l$NIX_BUILD_CORES \
238+ -j$(( ($NIX_BUILD_CORES+1) / 2 )) -l$(( $NIX_BUILD_CORES+1 )) \
234239 "${target}"
235240 '' + optionalString (target == "mksnapshot" || target == "chrome") ''
236241 paxmark m "${buildPath}/${target}"