15 stdenv.mkDerivation rec {
19 # releases on https://developers.yubico.com/libfido2/Releases/ are signed
21 url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.gz";
22 sha256 = "sha256-gT1tJRFhQ9FtLpZ5FxinSCXaFrd0qNCT2W8Grhcw2cU=";
25 nativeBuildInputs = [ cmake pkg-config ];
27 buildInputs = [ libcbor zlib ]
28 ++ lib.optionals stdenv.isDarwin [ hidapi ]
29 ++ lib.optionals stdenv.isLinux [ udev ]
30 ++ lib.optionals (stdenv.isLinux && withPcsclite) [ pcsclite ];
32 propagatedBuildInputs = [ openssl ];
34 outputs = [ "out" "dev" "man" ];
37 "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
38 "-DCMAKE_INSTALL_LIBDIR=lib"
39 ] ++ lib.optionals stdenv.isDarwin [
41 ] ++ lib.optionals stdenv.isLinux [
43 ] ++ lib.optionals (stdenv.isLinux && withPcsclite) [
49 Provides library functionality for FIDO 2.0, including communication with a device over USB.
51 homepage = "https://github.com/Yubico/libfido2";
52 license = licenses.bsd2;
53 maintainers = with maintainers; [ dtzWill prusnak ];
54 platforms = platforms.unix;