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

33 lines
1,005 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, pkg-config, json_c, hidapi }:
2014-10-24 23:35:33 +00:00
stdenv.mkDerivation rec {
2019-05-16 23:29:11 +00:00
pname = "libu2f-host";
version = "1.1.10";
2014-10-24 23:35:33 +00:00
src = fetchurl {
2019-05-16 23:29:11 +00:00
url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.xz";
sha256 = "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2";
2014-10-24 23:35:33 +00:00
};
2020-06-18 11:44:01 +00: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 02:22:14 +00:00
buildInputs = [ json_c hidapi ];
2014-10-24 23:35:33 +00: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-24 23:35:33 +00:00
platforms = platforms.unix;
};
}