depot/third_party/nixpkgs/pkgs/development/libraries/libu2f-server/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

29 lines
1 KiB
Nix

{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }:
stdenv.mkDerivation rec {
name = "libu2f-server-1.1.0";
src = fetchurl {
url = "https://developers.yubico.com/libu2f-server/Releases/${name}.tar.xz";
sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd";
};
patches = [
# remove after updating to next release
(fetchpatch {
name = "json-c-0.14-support.patch";
url = "https://github.com/Yubico/libu2f-server/commit/f7c4983b31909299c47bf9b2627c84b6bfe225de.patch";
sha256 = "10q66w3paii1yhfdmjskpip078fk9p3sjllbqx1yx71qbjki55b0";
})
];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ json_c openssl check file help2man which gengetopt ];
meta = with stdenv.lib; {
homepage = "https://developers.yubico.com/libu2f-server/";
description = "A C library that implements the server-side of the U2F protocol";
license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ philandstuff ];
};
}