nixpkgs/pkgs/development/libraries/libu2f-host/default.nix

28 lines
763 B
Nix
Raw Normal View History

2014-10-25 00:35:33 +01:00
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
stdenv.mkDerivation rec {
name = "libu2f-host-1.1.5";
2014-10-25 00:35:33 +01:00
src = fetchurl {
url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
sha256 = "159slvjfq4bqslx5amjkk90xnkiv3x0yzvbi54pl2vnzbr1p2azk";
2014-10-25 00:35:33 +01:00
};
2015-09-18 03:22:14 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ json_c hidapi ];
2014-10-25 00:35:33 +01:00
doCheck = true;
postInstall = ''
install -D -t $out/lib/udev/rules.d 70-u2f.rules
'';
2014-10-25 00:35:33 +01:00
meta = with stdenv.lib; {
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";
2014-10-25 00:35:33 +01:00
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}