opensc: fix darwin build

Closes #357432

(cherry picked from commit 304d33e04d)
This commit is contained in:
Michael Adler 2024-11-20 08:26:28 +01:00 committed by github-actions[bot]
parent 96dcda230c
commit a8c339fe13

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"