forked from mirrors/nixpkgs
14 lines
557 B
Nix
14 lines
557 B
Nix
{ appleDerivation, apple_sdk, libsecurity_cdsa_plugin, libsecurity_cdsa_utilities, libsecurity_utilities, osx_private_sdk }:
|
|
appleDerivation {
|
|
buildInputs = [
|
|
libsecurity_utilities
|
|
libsecurity_cdsa_utilities
|
|
libsecurity_cdsa_plugin
|
|
];
|
|
patchPhase = ''
|
|
cp ${osx_private_sdk}/PrivateSDK10.9.sparse.sdk/usr/local/include/sandbox_private.h .
|
|
substituteInPlace sandbox_private.h --replace '<sandbox.h>' '"${apple_sdk.sdk}/include/sandbox.h"'
|
|
substituteInPlace lib/AtomicFile.cpp --replace '<sandbox.h>' '"sandbox_private.h"'
|
|
'';
|
|
}
|