From d5f218a228a9406286dc34b4e522c987fa48be50 Mon Sep 17 00:00:00 2001 From: Alexander Shpilkin Date: Wed, 18 May 2022 21:38:00 +0300 Subject: [PATCH] rnp: fix path in pkg-config file --- pkgs/tools/security/rnp/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/tools/security/rnp/default.nix b/pkgs/tools/security/rnp/default.nix index a18571c80404..63053a10095c 100644 --- a/pkgs/tools/security/rnp/default.nix +++ b/pkgs/tools/security/rnp/default.nix @@ -5,6 +5,7 @@ , bzip2 , cmake , fetchFromGitHub +, fetchpatch , gnupg , gtest , json_c @@ -24,6 +25,15 @@ stdenv.mkDerivation rec { sha256 = "u0etVslTBF9fBqnpVBofYsm0uC/eR6gO3lhwzqua5Qw="; }; + # in master post 0.16.0, see https://github.com/rnpgp/rnp/issues/1835 + patches = [ + (fetchpatch { + name = "fix-pkg-config.patch"; + url = "https://github.com/rnpgp/rnp/commit/de9856c94ea829cad277800ee03ec52e30993d8e.patch"; + sha256 = "1vd83fva7lhmvqnvsrifqb2zdhfrbx84lf3l9i0hcph0k8h3ddx9"; + }) + ]; + buildInputs = [ zlib bzip2 json_c botan2 ]; cmakeFlags = [