summary refs log tree commit diff
path: root/pkgs/development/libraries/libu2f-server
diff options
context:
space:
mode:
authorMartin Milata <martin@martinmilata.cz>2020-06-18 13:44:17 +0200
committerMartin Milata <martin@martinmilata.cz>2020-07-02 18:30:23 +0200
commit1bfa7348fa0efc2af0315f9d27061e7642d09514 (patch)
treee1e9fe811c684e9b04c76b2addadb461766a9534 /pkgs/development/libraries/libu2f-server
parentf85535f11630d5209841b2a7d9389b5e89e100ab (diff)
downloadnixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar.gz
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar.bz2
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar.lz
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar.xz
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.tar.zst
nixpkgs-1bfa7348fa0efc2af0315f9d27061e7642d09514.zip
libu2f-server: support json_c-0.14
Diffstat (limited to 'pkgs/development/libraries/libu2f-server')
-rw-r--r--pkgs/development/libraries/libu2f-server/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libu2f-server/default.nix b/pkgs/development/libraries/libu2f-server/default.nix
index be5658914d1..cd961cde1d2 100644
--- a/pkgs/development/libraries/libu2f-server/default.nix
+++ b/pkgs/development/libraries/libu2f-server/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }:
+{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }:
 
 stdenv.mkDerivation rec {
   name = "libu2f-server-1.1.0";
@@ -7,6 +7,15 @@ stdenv.mkDerivation rec {
     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 ];