From 7b77d68bcf38fbb0eeb2b6651fb4c5eddbba4fe5 Mon Sep 17 00:00:00 2001 From: Alexander Shpilkin Date: Tue, 17 May 2022 14:01:46 +0300 Subject: [PATCH] libbaseencode: fix paths in pkg-config file --- pkgs/development/libraries/libbaseencode/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/libbaseencode/default.nix b/pkgs/development/libraries/libbaseencode/default.nix index fdd5dbd1cb33..3abe41f5b5dd 100644 --- a/pkgs/development/libraries/libbaseencode/default.nix +++ b/pkgs/development/libraries/libbaseencode/default.nix @@ -13,6 +13,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake ]; + # https://github.com/paolostivanin/libbaseencode/issues/25 + postPatch = '' + substituteInPlace baseencode.pc.in \ + --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \ + --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@ + ''; + meta = with lib; { description = "Library written in C for encoding and decoding data using base32 or base64 (RFC-4648)"; homepage = "https://github.com/paolostivanin/libbaseencode";