libu2f-host: support json_c-0.14

This commit is contained in:
Martin Milata 2020-06-18 13:44:01 +02:00
parent 9e7f109ef7
commit f85535f116

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, json_c, hidapi }:
{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, hidapi }:
stdenv.mkDerivation rec {
pname = "libu2f-host";
@ -9,6 +9,15 @@ 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 ];