mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
e211504db6
For example this reduces haskell closure on darwin for some packages for almost 500MB.
24 lines
650 B
Nix
24 lines
650 B
Nix
{ appleDerivation, bootstrap_cmds, libsecurity_cdsa_client, libsecurity_cdsa_utilities, libsecurity_utilities }:
|
|
appleDerivation {
|
|
buildInputs = [
|
|
libsecurity_cdsa_utilities
|
|
libsecurity_utilities
|
|
bootstrap_cmds
|
|
];
|
|
patchPhase = ''
|
|
unpackFile ${libsecurity_cdsa_client.src}
|
|
mv libsecurity_cdsa_client*/lib security_cdsa_client
|
|
ln -s lib securityd_client
|
|
|
|
patch -p1 < ${./xdr-arity.patch}
|
|
'';
|
|
preBuild = ''
|
|
make -f mig/mig.mk SRCROOT=. BUILT_PRODUCTS_DIR=.
|
|
cp derived_src/* lib
|
|
rm lib/ucspClientC.c
|
|
'';
|
|
postInstall = ''
|
|
ln -s ''$out/include/securityd ''$out/include/securityd_client
|
|
'';
|
|
}
|