diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-02-15T20·48+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-18T17·02+0100 |
commit | db3d3a56184a34d7fa46f493e1ecd3ff0ff10453 (patch) | |
tree | 1594dc027440a4efd03d1edc1f4d769f77d273fe | |
parent | 91030eae507db719048c89a8e4542e025261ed5d (diff) |
Build with large config Boehm GC
(cherry picked from commit 583d06385de82ab5c7fc77d26cd138d3c6d5f4b5)
-rw-r--r-- | release-common.nix | 6 | ||||
-rw-r--r-- | release.nix | 8 | ||||
-rw-r--r-- | shell.nix | 2 |
3 files changed, 12 insertions, 4 deletions
diff --git a/release-common.nix b/release-common.nix index 2e8a951b9cd2..d66bbafa8e10 100644 --- a/release-common.nix +++ b/release-common.nix @@ -50,7 +50,7 @@ rec { buildDeps = [ curl bzip2 xz brotli editline - openssl pkgconfig sqlite boehmgc + openssl pkgconfig sqlite boost # Tests @@ -72,6 +72,10 @@ rec { */ })); + propagatedDeps = + [ (boehmgc.override { enableLargeConfig = true; }) + ]; + perlDeps = [ perl perlPackages.DBDSQLite diff --git a/release.nix b/release.nix index 2ab6a63f7aef..64aa1a976689 100644 --- a/release.nix +++ b/release.nix @@ -23,7 +23,7 @@ let src = nix; inherit officialRelease; - buildInputs = tarballDeps ++ buildDeps; + buildInputs = tarballDeps ++ buildDeps ++ propagatedDeps; configureFlags = "--enable-gc"; @@ -67,6 +67,8 @@ let buildInputs = buildDeps; + propagatedBuildInputs = propagatedDeps; + preConfigure = # Copy libboost_context so we don't get all of Boost in our closure. # https://github.com/NixOS/nixpkgs/issues/45462 @@ -198,7 +200,9 @@ let name = "nix-build"; src = tarball; - buildInputs = buildDeps; + enableParallelBuilding = true; + + buildInputs = buildDeps ++ propagatedDeps; dontInstall = false; diff --git a/shell.nix b/shell.nix index 8167f87a2929..e8026f8e40b1 100644 --- a/shell.nix +++ b/shell.nix @@ -7,7 +7,7 @@ with import ./release-common.nix { inherit pkgs; }; (if useClang then clangStdenv else stdenv).mkDerivation { name = "nix"; - buildInputs = buildDeps ++ tarballDeps ++ perlDeps; + buildInputs = buildDeps ++ propagatedDeps ++ tarballDeps ++ perlDeps; inherit configureFlags; |