haskell-x509-system: don't add Darwin-related patch unconditionally
This commit is contained in:
parent
155e926274
commit
c0e7951de9
|
@ -145,8 +145,7 @@ 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.
|
||||||
x509-system = overrideCabal super.x509-system (drv: {
|
x509-system = overrideCabal super.x509-system (drv: {
|
||||||
patchPhase = ''
|
patchPhase = (drv.patchPhase or "") + pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
|
||||||
${drv.patchPhase or ""}
|
|
||||||
substituteInPlace System/X509/MacOS.hs --replace security ${pkgs.darwin.security_tool}/bin/security
|
substituteInPlace System/X509/MacOS.hs --replace security ${pkgs.darwin.security_tool}/bin/security
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue