aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libu2f-host/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/libu2f-host/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix b/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
index 3becd075b25..a9c62673115 100644
--- a/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
+++ b/nixpkgs/pkgs/development/libraries/libu2f-host/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
+{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, hidapi }:
stdenv.mkDerivation rec {
pname = "libu2f-host";
@@ -9,15 +9,20 @@ stdenv.mkDerivation rec {
sha256 = "0vrivl1dwql6nfi48z6dy56fwy2z13d7abgahgrs2mcmqng7hra2";
};
+ patches = [
+ # remove after updating to next release
+ (fetchpatch {
+ name = "json-c-0.14-support.patch";
+ url = "https://github.com/Yubico/libu2f-host/commit/840f01135d2892f45e71b9e90405de587991bd03.patch";
+ sha256 = "0xplx394ppsbsb4h4l8b9m4dv9shbl0zyck3y26vbm9i1g981ki7";
+ })
+ ];
+
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ json_c hidapi ];
doCheck = true;
- postInstall = ''
- install -D -t $out/lib/udev/rules.d 70-u2f.rules
- '';
-
meta = with stdenv.lib; {
homepage = "https://developers.yubico.com/libu2f-host";
description = "A C library and command-line tool that implements the host-side of the U2F protocol";