nixUnstable: Include a copy of libboost_context
This shaves 47 MiB off the closure size. (libboost_context.so is only 19 KiB.)
This commit is contained in:
parent
c26c7f931a
commit
4c6aa54f86
@ -49,6 +49,15 @@ let
|
|||||||
# Seems to be required when using std::atomic with 64-bit types
|
# Seems to be required when using std::atomic with 64-bit types
|
||||||
NIX_LDFLAGS = lib.optionalString (stdenv.hostPlatform.system == "armv6l-linux") "-latomic";
|
NIX_LDFLAGS = lib.optionalString (stdenv.hostPlatform.system == "armv6l-linux") "-latomic";
|
||||||
|
|
||||||
|
preConfigure =
|
||||||
|
# Copy libboost_context so we don't get all of Boost in our closure.
|
||||||
|
# https://github.com/NixOS/nixpkgs/issues/45462
|
||||||
|
lib.optionalString fromGit
|
||||||
|
''
|
||||||
|
mkdir -p $out/lib
|
||||||
|
cp ${boost}/lib/libboost_context* $out/lib
|
||||||
|
'';
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-store-dir=${storeDir}"
|
[ "--with-store-dir=${storeDir}"
|
||||||
"--localstatedir=${stateDir}"
|
"--localstatedir=${stateDir}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user