14 lines
521 B
Nix
14 lines
521 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}/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"'
|
|
'';
|
|
}
|