nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
zimbatm 99b1af9dc0 libu2f-host: fix udev rules
It was shipping two competing rules. Only use the modern-one.
2016-05-09 14:16:31 +02:00

27 lines
763 B
Nix

{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
stdenv.mkDerivation rec {
name = "libu2f-host-1.1.1";
src = fetchurl {
url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
sha256 = "0g0f012w0c00cvj5g319x2b8prbh0d3fcac9960cy7xsd8chckg1";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ json_c hidapi ];
doCheck = true;
postInstall = ''
install -D -t $out/lib/udev/rules.d 70-u2f.rules
'';
meta = with stdenv.lib; {
homepage = https://developers.yubico.com/libu2f-host;
description = "A C library and command-line tool thati mplements the host-side of the U2F protocol";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = with maintainers; [ wkennington ];
};
}