use security_tool in x509-system
This commit is contained in:
parent
7851df4454
commit
ac3acae7a5
@ -209,12 +209,14 @@ self: super: {
|
|||||||
# Prevents needing to add security_tool as a build tool to all of x509-system's
|
# Prevents needing to add security_tool as a build tool to all of x509-system's
|
||||||
# dependencies.
|
# dependencies.
|
||||||
# TODO: use pkgs.darwin.security_tool once we can build it
|
# TODO: use pkgs.darwin.security_tool once we can build it
|
||||||
x509-system = let security_tool = "/usr";
|
x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc
|
||||||
in overrideCabal super.x509-system (drv: {
|
then let inherit (pkgs.darwin) security_tool;
|
||||||
patchPhase = (drv.patchPhase or "") + pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
|
in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
|
||||||
|
patchPhase = (drv.patchPhase or "") + ''
|
||||||
substituteInPlace System/X509/MacOS.hs --replace security ${security_tool}/bin/security
|
substituteInPlace System/X509/MacOS.hs --replace security ${security_tool}/bin/security
|
||||||
'';
|
'';
|
||||||
});
|
})
|
||||||
|
else super.x509-system;
|
||||||
|
|
||||||
double-conversion = if !pkgs.stdenv.isDarwin
|
double-conversion = if !pkgs.stdenv.isDarwin
|
||||||
then super.double-conversion
|
then super.double-conversion
|
||||||
|
Loading…
Reference in New Issue
Block a user