opensc: fix darwin build (#357494)

This commit is contained in:
Aleksana 2024-11-21 21:41:52 +08:00 committed by GitHub
commit 40b061a29c
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"