Remove boost from the closure

This reduces the size of the closure by 45 MiB.
This commit is contained in:
Eelco Dolstra 2018-08-30 16:03:06 +02:00
parent 64d7d1a884
commit 145db703e5
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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" ];