From 9e8bf24e48a0364d16660c485f2e33d01f6c6eaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Wed, 28 Sep 2022 17:48:27 +0200 Subject: [PATCH] rtrlib: fix paths in .pc file --- pkgs/development/libraries/rtrlib/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/rtrlib/default.nix b/pkgs/development/libraries/rtrlib/default.nix index bb0aec308ae838..05429a72fb667a 100644 --- a/pkgs/development/libraries/rtrlib/default.nix +++ b/pkgs/development/libraries/rtrlib/default.nix @@ -14,6 +14,11 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; buildInputs = [ libssh openssl ]; + postFixup = '' + substituteInPlace "$out"/lib/pkgconfig/rtrlib.pc \ + --replace '=''${prefix}//' '=/' + ''; + meta = with lib; { description = "An open-source C implementation of the RPKI/Router Protocol client"; homepage = "https://github.com/rtrlib/rtrlib";