yubihsm-shell: fix linking to pcsclite.h

This commit is contained in:
Jon Seager 2024-08-12 20:53:21 +01:00
parent 730aa60b27
commit 403a85adaa
No known key found for this signature in database

View File

@ -48,12 +48,16 @@ stdenv.mkDerivation rec {
curl
openssl
] ++ lib.optionals stdenv.isLinux [
pcsclite
pcsclite.dev
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.PCSC
libiconv
];
preBuild = lib.optionalString stdenv.isLinux ''
NIX_CFLAGS_COMPILE="$(pkg-config --cflags libpcsclite) $NIX_CFLAGS_COMPILE"
'';
cmakeFlags = lib.optionals stdenv.isDarwin [
"-DDISABLE_LTO=ON"
];