1{ stdenv, fetchurl, pkgconfig, json_c, openssl, check }:
2
3stdenv.mkDerivation rec {
4 name = "libu2f-server-1.0.1";
5
6 src = fetchurl {
7 url = "https://developers.yubico.com/libu2f-server/Releases/${name}.tar.xz";
8 sha256 = "0vhzixz1s629qv9dpdj6b7fxfyxnr5j2vx2cq9q6v790a68ga656";
9 };
10
11 nativeBuildInputs = [ pkgconfig ];
12 buildInputs = [ json_c openssl check ];
13
14 meta = with stdenv.lib; {
15 homepage = https://developers.yubico.com/libu2f-server/;
16 description = "A C library that implements the server-side of the U2F protocol";
17 license = licenses.bsd2;
18 platforms = platforms.linux;
19 maintainers = with maintainers; [ philandstuff ];
20 };
21}