opensc: fix darwin build

Closes #357432
This commit is contained in:
Michael Adler 2024-11-20 08:26:28 +01:00
parent 4f9c49eaa1
commit 304d33e04d

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"