mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
e211504db6
For example this reduces haskell closure on darwin for some packages for almost 500MB.
14 lines
398 B
Nix
14 lines
398 B
Nix
{ CommonCrypto, appleDerivation, libsecurity_codesigning, libsecurity_utilities, m4 }:
|
|
appleDerivation {
|
|
buildInputs = [
|
|
libsecurity_utilities
|
|
m4
|
|
];
|
|
patchPhase = ''
|
|
patch -p1 < ${./handletemplates.patch}
|
|
unpackFile ${libsecurity_codesigning.src}
|
|
mv libsecurity_codesigning*/lib security_codesigning
|
|
'';
|
|
NIX_CFLAGS_COMPILE = "-I${CommonCrypto}/include/CommonCrypto";
|
|
}
|