mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
e211504db6
For example this reduces haskell closure on darwin for some packages for almost 500MB.
16 lines
436 B
Nix
16 lines
436 B
Nix
{ appleDerivation, libsecurity_asn1, libsecurity_cdsa_client, libsecurity_cdsa_utils, libsecurity_keychain }:
|
|
appleDerivation {
|
|
patchPhase = ''
|
|
substituteInPlace lib/pkcsoids.h --replace '#error' '#warning'
|
|
'';
|
|
preBuild = ''
|
|
unpackFile ${libsecurity_keychain.src}
|
|
mv libsecurity_keychain*/lib security_keychain
|
|
'';
|
|
buildInputs = [
|
|
libsecurity_asn1
|
|
libsecurity_cdsa_utils
|
|
libsecurity_cdsa_client
|
|
];
|
|
}
|