2014-10-24 23:35:33 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-04-13 00:25:25 +00:00
|
|
|
name = "libu2f-host-1.1.1";
|
2014-10-24 23:35:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
|
2016-04-13 00:25:25 +00:00
|
|
|
sha256 = "0g0f012w0c00cvj5g319x2b8prbh0d3fcac9960cy7xsd8chckg1";
|
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; {
|
|
|
|
homepage = https://developers.yubico.com/libu2f-host;
|
2015-05-03 14:29:42 +00:00
|
|
|
description = "A C library and command-line tool thati mplements the host-side of the U2F protocol";
|
2014-10-24 23:35:33 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|