perlPackages.CryptOpenSSLAES: fix Darwin build (pin OpenSSL prefix)

Set OPENSSL_PREFIX so Makefile.PL finds Nix openssl only; avoids macOS mixing system libcrypto and aborting during configure.
This commit is contained in:
Angel J
2026-05-06 13:09:48 -07:00
parent 15183f7428
commit cddded608f
+3
View File
@@ -7581,6 +7581,9 @@ with self;
];
env.NIX_CFLAGS_COMPILE = "-I${pkgs.openssl.dev}/include";
env.NIX_CFLAGS_LINK = "-L${lib.getLib pkgs.openssl}/lib -lcrypto";
# Needed on Darwin so Crypt::OpenSSL::Guess does not pick /usr/bin/openssl and mix
# system libcrypto with the Nix one (perl aborts: "loading libcrypto in an unsafe way").
env.OPENSSL_PREFIX = pkgs.openssl;
meta = {
description = "Perl wrapper around OpenSSL's AES library";
license = with lib.licenses; [