nixpkgs/pkgs/development/libraries/libu2f-host/default.nix

33 lines
1005 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, pkg-config, json_c, hidapi }:
2014-10-25 00:35:33 +01:00
stdenv.mkDerivation rec {
2019-05-17 00:29:11 +01:00
pname = "libu2f-host";
version = "1.1.10";
2014-10-25 00:35:33 +01:00
src = fetchurl {
2019-05-17 00:29:11 +01:00
url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.xz";
sha256 = "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2";
2014-10-25 00:35:33 +01:00
};
2020-06-18 12:44:01 +01:00
patches = [
# remove after updating to next release
(fetchpatch {
name = "json-c-0.14-support.patch";
url = "https://github.com/Yubico/libu2f-host/commit/840f01135d2892f45e71b9e90405de587991bd03.patch";
sha256 = "0xplx394ppsbsb4h4l8b9m4dv9shbl0zyck3y26vbm9i1g981ki7";
})
];
nativeBuildInputs = [ pkg-config ];
2015-09-18 03:22:14 +01:00
buildInputs = [ json_c hidapi ];
2014-10-25 00:35:33 +01:00
doCheck = true;
meta = with lib; {
homepage = "https://developers.yubico.com/libu2f-host";
2017-12-06 04:58:29 +00:00
description = "A C library and command-line tool that implements the host-side of the U2F protocol";
2020-02-23 03:29:58 +00:00
license = with licenses; [ gpl3Plus lgpl21Plus ];
2014-10-25 00:35:33 +01:00
platforms = platforms.unix;
};
}