yubihsm-shell: fix linking to pcsclite.h
This commit is contained in:
parent
730aa60b27
commit
403a85adaa
@ -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"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user