nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 29 lines 1.1 kB view raw
1{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }: 2 3stdenv.mkDerivation rec { 4 name = "libu2f-server-1.1.0"; 5 src = fetchurl { 6 url = "https://developers.yubico.com/libu2f-server/Releases/${name}.tar.xz"; 7 sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd"; 8 }; 9 10 patches = [ 11 # remove after updating to next release 12 (fetchpatch { 13 name = "json-c-0.14-support.patch"; 14 url = "https://github.com/Yubico/libu2f-server/commit/f7c4983b31909299c47bf9b2627c84b6bfe225de.patch"; 15 sha256 = "10q66w3paii1yhfdmjskpip078fk9p3sjllbqx1yx71qbjki55b0"; 16 }) 17 ]; 18 19 nativeBuildInputs = [ pkgconfig ]; 20 buildInputs = [ json_c openssl check file help2man which gengetopt ]; 21 22 meta = with stdenv.lib; { 23 homepage = "https://developers.yubico.com/libu2f-server/"; 24 description = "A C library that implements the server-side of the U2F protocol"; 25 license = licenses.bsd2; 26 platforms = platforms.linux; 27 maintainers = with maintainers; [ philandstuff ]; 28 }; 29}