2014-10-24 23:35:33 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2015-09-18 02:22:14 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ json_c hidapi ];
|
2014-10-24 23:35:33 +00:00
|
|
|
|
2016-05-08 20:37:23 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-04-24 12:34:25 +00:00
|
|
|
postInstall = ''
|
2016-05-08 20:37:23 +00:00
|
|
|
install -D -t $out/lib/udev/rules.d 70-u2f.rules
|
2016-04-24 12:34:25 +00:00
|
|
|
'';
|
|
|
|
|
2014-10-24 23:35:33 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|