e211504db6
For example this reduces haskell closure on darwin for some packages for almost 500MB.
20 lines
443 B
Nix
20 lines
443 B
Nix
{ appleDerivation, bootstrap_cmds, libsecurity_cdsa_utilities, libsecurity_utilities }:
|
|
appleDerivation {
|
|
buildInputs = [
|
|
libsecurity_utilities
|
|
libsecurity_cdsa_utilities
|
|
bootstrap_cmds
|
|
];
|
|
postUnpack = ''
|
|
pushd libsecurity*
|
|
ls -lah
|
|
mkdir -p lib
|
|
cp common/* lib
|
|
cp client/* lib
|
|
popd
|
|
'';
|
|
preBuild = ''
|
|
make -f mig/mig.mk SRCROOT=. BUILT_PRODUCTS_DIR=. || exit 1
|
|
cp derived_src/* lib
|
|
'';
|
|
}
|