haskellPackages.HsOpenSSL-x509-system: fix Mac runtime

It's the same sort of platform-specific code as the
{crypton-,}x509-system packages. Applying the same bandaid fixes.
This commit is contained in:
Ben Orchard
2025-10-10 12:27:58 +01:00
parent 4d3f1e8d60
commit 485a99feff
@@ -108,6 +108,15 @@ self: super:
+ (drv.postPatch or "");
}
) super.crypton-x509-system;
HsOpenSSL-x509-system = overrideCabal (
drv:
lib.optionalAttrs (!pkgs.stdenv.cc.nativeLibc) {
postPatch = ''
substituteInPlace OpenSSL/X509/SystemStore/MacOSX.hs --replace-fail security /usr/bin/security
''
+ (drv.postPatch or "");
}
) super.HsOpenSSL-x509-system;
# https://github.com/haskell-foundation/foundation/pull/412
foundation = dontCheck super.foundation;