2014-10-25 01:35:33 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-11 21:03:06 +01:00
|
|
|
name = "libu2f-host-1.1.7";
|
2014-10-25 01:35:33 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
|
2019-02-11 21:03:06 +01:00
|
|
|
sha256 = "1zyws91b1fsbfwn3f23ry9a9zr0i1a1hqmhk3v1qnlvp56gjayli";
|
2014-10-25 01:35:33 +02:00
|
|
|
};
|
|
|
|
|
2015-09-18 04:22:14 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ json_c hidapi ];
|
2014-10-25 01:35:33 +02:00
|
|
|
|
2016-05-08 22:37:23 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-04-24 14:34:25 +02:00
|
|
|
postInstall = ''
|
2016-05-08 22:37:23 +02:00
|
|
|
install -D -t $out/lib/udev/rules.d 70-u2f.rules
|
2016-04-24 14:34:25 +02:00
|
|
|
'';
|
|
|
|
|
2014-10-25 01:35:33 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://developers.yubico.com/libu2f-host;
|
2017-12-06 05:58:29 +01:00
|
|
|
description = "A C library and command-line tool that implements the host-side of the U2F protocol";
|
2014-10-25 01:35:33 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|