libfido2: add option to disable pcsclite
Cross-compiling pcsclite is slow and has been historically troublesome, and it covers a rare use case in a common library. Add an option to easily disable it when desired.
This commit is contained in:
parent
c96c80356a
commit
de90412939
@ -8,6 +8,7 @@
|
||||
, openssl
|
||||
, udev
|
||||
, zlib
|
||||
, withPcsclite ? true
|
||||
, pcsclite
|
||||
}:
|
||||
|
||||
@ -25,7 +26,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ libcbor zlib ]
|
||||
++ lib.optionals stdenv.isDarwin [ hidapi ]
|
||||
++ lib.optionals stdenv.isLinux [ udev pcsclite ];
|
||||
++ lib.optionals stdenv.isLinux [ udev ]
|
||||
++ lib.optionals (stdenv.isLinux && withPcsclite) [ pcsclite ];
|
||||
|
||||
propagatedBuildInputs = [ openssl ];
|
||||
|
||||
@ -38,6 +40,7 @@ stdenv.mkDerivation rec {
|
||||
"-DUSE_HIDAPI=1"
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
"-DNFC_LINUX=1"
|
||||
] ++ lib.optionals (stdenv.isLinux && withPcsclite) [
|
||||
"-DUSE_PCSC=1"
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user