[Backport release-24.11] opensc: fix darwin build (#357908)

This commit is contained in:
Aleksana 2024-11-21 21:43:37 +08:00 committed by GitHub
commit f148723f71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -73,7 +73,12 @@ stdenv.mkDerivation rec {
) "XSLTPROC=${buildPackages.libxslt}/bin/xsltproc")
];
PCSC_CFLAGS = lib.optionalString withApplePCSC "-I${darwin.apple_sdk.frameworks.PCSC}/Library/Frameworks/PCSC.framework/Headers";
PCSC_CFLAGS = lib.concatStringsSep " " (
lib.optionals withApplePCSC [
"-I${darwin.apple_sdk.frameworks.PCSC}/Library/Frameworks/PCSC.framework/Headers"
"-I${lib.getDev pcsclite}/include/PCSC"
]
);
installFlags = [
"sysconfdir=$(out)/etc"