about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
blob: f033aa9f610fb5db2352fcdcccf66f0b7231e314 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:

stdenv.mkDerivation rec {
  pname = "libu2f-host";
  version = "1.1.10";

  src = fetchurl {
    url = "https://developers.yubico.com/${pname}/Releases/${pname}-${version}.tar.xz";
    sha256 = "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ json_c hidapi ];

  doCheck = true;

  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 = with licenses; [ gpl3Plus lgpl21Plus ];
    platforms = platforms.unix;
  };
}