mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
596645d5d2
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libu2f-host/versions. These checks were done: - built on NixOS - /nix/store/8jbzdkhk2krc8yc37c9bcxsbmam5csaa-libu2f-host-1.1.6/bin/u2f-host passed the binary check. - 1 of 1 passed binary check by having a zero exit code. - 1 of 1 passed binary check by having the new version present in output. - found 1.1.6 with grep in /nix/store/8jbzdkhk2krc8yc37c9bcxsbmam5csaa-libu2f-host-1.1.6 - directory tree listing: https://gist.github.com/bc0958f894bcdad9565006be8be45096 - du listing: https://gist.github.com/e9a255d64be0442f7d14fca45cbcb6f0
28 lines
763 B
Nix
28 lines
763 B
Nix
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libu2f-host-1.1.6";
|
|
|
|
src = fetchurl {
|
|
url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
|
|
sha256 = "19xxwwqfzg3njfpxvhlyxd05wjwsdw3m4lpn7gk31cna6agbp82d";
|
|
};
|
|
|
|
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 that implements the host-side of the U2F protocol";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|