1
0
Fork 1
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:
Peter Simons 2015-02-14 10:25:17 +01:00
parent 155e926274
commit c0e7951de9

View file

@ -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
'';
});