3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/darwin/apple-source-releases/libsecurityd/default.nix

24 lines
650 B
Nix
Raw Normal View History

{ appleDerivation, bootstrap_cmds, libsecurity_cdsa_client, libsecurity_cdsa_utilities, libsecurity_utilities }:
2015-06-22 04:29:33 +01:00
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
'';
}