16 stdenv.mkDerivation rec {
20 # releases on https://developers.yubico.com/libfido2/Releases/ are signed
22 url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.gz";
23 hash = "sha256-q6qxMY0h0mLs5Bb7inEy+pN0vaifb6UrhqmKL1cSth4=";
36 ++ lib.optionals stdenv.hostPlatform.isDarwin [ hidapi ]
37 ++ lib.optionals stdenv.hostPlatform.isLinux [ udev ]
38 ++ lib.optionals (stdenv.hostPlatform.isLinux && withPcsclite) [ pcsclite ];
40 propagatedBuildInputs = [ openssl ];
50 "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
51 "-DCMAKE_INSTALL_LIBDIR=lib"
53 ++ lib.optionals stdenv.hostPlatform.isDarwin [
56 ++ lib.optionals stdenv.hostPlatform.isLinux [
59 ++ lib.optionals (stdenv.hostPlatform.isLinux && withPcsclite) [
63 # causes possible redefinition of _FORTIFY_SOURCE?
64 hardeningDisable = [ "fortify3" ];
68 Provides library functionality for FIDO 2.0, including communication with a device over USB.
70 homepage = "https://github.com/Yubico/libfido2";
71 license = licenses.bsd2;
72 maintainers = with maintainers; [ prusnak ];
73 platforms = platforms.unix;