Skip to content

Commit

Permalink
Remove boost from the closure
Browse files Browse the repository at this point in the history
This reduces the size of the closure by 45 MiB.
  • Loading branch information
edolstra committed Aug 30, 2018
1 parent 64d7d1a commit 145db70
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ let

buildInputs = buildDeps;

preConfigure =
# Copy libboost_context so we don't get all of Boost in our closure.
# https://github.com/NixOS/nixpkgs/issues/45462
''
mkdir -p $out/lib
cp ${boost}/lib/libboost_context* $out/lib
'';

configureFlags = configureFlags ++
[ "--sysconfdir=/etc" ];

Expand Down

0 comments on commit 145db70

Please sign in to comment.