python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libu2f-server / default.nix
blobaac71bda3698c9336f74cd07b3f531ac51aed92d
1 { lib, stdenv, fetchurl, fetchpatch, pkg-config, json_c, openssl, check, file, help2man, which, gengetopt }:
3 stdenv.mkDerivation rec {
4   pname = "libu2f-server";
5   version = "1.1.0";
6   src = fetchurl {
7     url = "https://developers.yubico.com/libu2f-server/Releases/${pname}-${version}.tar.xz";
8     sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd";
9   };
11   patches = [
12     # remove after updating to next release
13     (fetchpatch {
14       name = "json-c-0.14-support.patch";
15       url = "https://github.com/Yubico/libu2f-server/commit/f7c4983b31909299c47bf9b2627c84b6bfe225de.patch";
16       sha256 = "10q66w3paii1yhfdmjskpip078fk9p3sjllbqx1yx71qbjki55b0";
17     })
18   ];
20   nativeBuildInputs = [ pkg-config ];
21   buildInputs = [ json_c openssl check file help2man which gengetopt ];
23   meta = with lib; {
24     homepage = "https://developers.yubico.com/libu2f-server/";
25     description = "A C library that implements the server-side of the U2F protocol";
26     license = licenses.bsd2;
27     platforms = platforms.linux;
28     maintainers = with maintainers; [ philandstuff ];
29   };