2020-06-18 04:44:01 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, hidapi }:
|
2014-10-24 16:35:33 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-16 16:29:11 -07:00
|
|
|
pname = "libu2f-host";
|
|
|
|
version = "1.1.10";
|
2014-10-24 16:35:33 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-16 16:29:11 -07:00
|
|
|
url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2";
|
2014-10-24 16:35:33 -07:00
|
|
|
};
|
|
|
|
|
2020-06-18 04:44:01 -07: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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2015-09-17 19:22:14 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ json_c hidapi ];
|
2014-10-24 16:35:33 -07:00
|
|
|
|
2016-05-08 13:37:23 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
2014-10-24 16:35:33 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://developers.yubico.com/libu2f-host";
|
2017-12-05 20:58:29 -08:00
|
|
|
description = "A C library and command-line tool that implements the host-side of the U2F protocol";
|
2020-02-22 19:29:58 -08:00
|
|
|
license = with licenses; [ gpl3Plus lgpl21Plus ];
|
2014-10-24 16:35:33 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|