elmPackages.elm: fix build failure on darwin

Patches `crypton-x509-system` to use the full path to the `security`
binary.
This commit is contained in:
Sander 2024-05-27 20:20:06 +04:00
parent 29eb2c04cf
commit 9dd7a8222c
No known key found for this signature in database
GPG Key ID: D1A763BC84F34603

View File

@ -110,6 +110,12 @@ self: super: ({
substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security
'' + (drv.postPatch or "");
}) super.x509-system;
crypton-x509-system = overrideCabal (drv:
lib.optionalAttrs (!pkgs.stdenv.cc.nativeLibc) {
postPatch = ''
substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security
'' + (drv.postPatch or "");
}) super.crypton-x509-system;
# https://github.com/haskell-foundation/foundation/pull/412
foundation = dontCheck super.foundation;