Merge pull request #58543 from dtzWill/feature/libfido2

libfido2: init at 1.1.0 (and libcor dep)
This commit is contained in:
Will Dietz 2019-05-21 03:25:52 -05:00 committed by GitHub
commit 3c3085bb71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchFromGitHub, cmake, cmocka }:
stdenv.mkDerivation rec {
pname = "libcbor";
version = "2019-02-23";
src = fetchFromGitHub {
owner = "PJK";
repo = pname;
rev = "87f977e732ca216682a8583a0e43803eb6b9c028";
sha256 = "17p1ahdcpf5d4r472lhciscaqjq4pyxy9xjhqqx8mv646xmyripm";
};
nativeBuildInputs = [ cmake ];
checkInputs = [ cmocka ];
doCheck = false; # needs "-DWITH_TESTS=ON", but fails w/compilation error
NIX_CFLAGS_COMPILE = [ "-fno-lto" ];
meta = with stdenv.lib; {
description = "CBOR protocol implementation for C and others";
homepage = https://github.com/PJK/libcbor;
license = licenses.mit;
maintainers = with maintainers; [ dtzWill ];
};
}

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl, cmake, pkgconfig, libcbor, libressl, udev }:
stdenv.mkDerivation rec {
pname = "libfido2";
version = "1.1.0";
src = fetchurl {
url = "https://developers.yubico.com/libfido2/Releases/libfido2-${version}.tar.gz";
sha256 = "1h51q9pgv54czf7k6v90b02gnvqw4dlxmz6vi0n06shpkdzv5jh1";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libcbor libressl udev ];
cmakeFlags = [ "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d" ];
meta = with stdenv.lib; {
description = ''
Provides library functionality for FIDO 2.0, including communication with a device over USB.
'';
homepage = https://github.com/Yubico/libfido2;
license = licenses.bsd2;
maintainers = with maintainers; [ dtzWill ];
};
}

View File

@ -11146,6 +11146,8 @@ in
then pkgs.libcanberra
else pkgs.libcanberra-gtk2;
libcbor = callPackage ../development/libraries/libcbor { };
libcec = callPackage ../development/libraries/libcec { };
libcec_platform = callPackage ../development/libraries/libcec/platform.nix { };
@ -11310,6 +11312,8 @@ in
libfakekey = callPackage ../development/libraries/libfakekey { };
libfido2 = callPackage ../development/libraries/libfido2 { };
libfilezilla = callPackage ../development/libraries/libfilezilla { };
libfm = callPackage ../development/libraries/libfm { };