Skip to content

Commit

Permalink
Build with large config Boehm GC
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Feb 18, 2020
1 parent f46bc0e commit 583d063
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion release-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ rec {
buildDeps =
[ curl
bzip2 xz brotli zlib editline
openssl pkgconfig sqlite boehmgc
openssl pkgconfig sqlite
libarchive
boost
nlohmann_json
Expand All @@ -73,6 +73,10 @@ rec {
*/
}));

propagatedDeps =
[ (boehmgc.override { enableLargeConfig = true; })
];

perlDeps =
[ perl
perlPackages.DBDSQLite
Expand Down
6 changes: 4 additions & 2 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ let
src = nix;
inherit officialRelease;

buildInputs = tarballDeps ++ buildDeps;
buildInputs = tarballDeps ++ buildDeps ++ propagatedDeps;

postUnpack = ''
(cd $sourceRoot && find . -type f) | cut -c3- > $sourceRoot/.dist-files
Expand Down Expand Up @@ -111,6 +111,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
Expand Down Expand Up @@ -244,7 +246,7 @@ let

enableParallelBuilding = true;

buildInputs = buildDeps;
buildInputs = buildDeps ++ propagatedDeps;

dontInstall = false;

Expand Down
2 changes: 1 addition & 1 deletion shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with import ./release-common.nix { inherit pkgs; };
(if useClang then clangStdenv else stdenv).mkDerivation {
name = "nix";

buildInputs = buildDeps ++ tarballDeps ++ perlDeps ++ [ pkgs.rustfmt ];
buildInputs = buildDeps ++ propagatedDeps ++ tarballDeps ++ perlDeps ++ [ pkgs.rustfmt ];

inherit configureFlags;

Expand Down

0 comments on commit 583d063

Please sign in to comment.