Commit 304d33e0 authored by Michael Adler's avatar Michael Adler
Browse files

opensc: fix darwin build

Closes #357432
parent 4f9c49ea
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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"