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