mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
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
|
||||
# dependencies.
|
||||
x509-system = overrideCabal super.x509-system (drv: {
|
||||
patchPhase = ''
|
||||
${drv.patchPhase or ""}
|
||||
patchPhase = (drv.patchPhase or "") + pkgs.stdenv.lib.optionalString pkgs.stdenv.isDarwin ''
|
||||
substituteInPlace System/X509/MacOS.hs --replace security ${pkgs.darwin.security_tool}/bin/security
|
||||
'';
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue