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:
@@ -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; [
|
||||
|
||||
Reference in New Issue
Block a user