From 3bbc6d7842fcfeb8c575f9581e00e185229c2069 Mon Sep 17 00:00:00 2001 From: Alexander Shpilkin Date: Tue, 17 May 2022 14:17:42 +0300 Subject: [PATCH] libcotp: fix paths in pkg-config file --- pkgs/development/libraries/libcotp/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/libcotp/default.nix b/pkgs/development/libraries/libcotp/default.nix index 6fb7b3879c20..9d1b51a03ddc 100644 --- a/pkgs/development/libraries/libcotp/default.nix +++ b/pkgs/development/libraries/libcotp/default.nix @@ -14,6 +14,13 @@ stdenv.mkDerivation rec { buildInputs = [ libbaseencode libgcrypt ]; nativeBuildInputs = [ cmake pkg-config ]; + # https://github.com/paolostivanin/libcotp/issues/32 + postPatch = '' + substituteInPlace cotp.pc.in \ + --replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \ + --replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@ + ''; + meta = with lib; { description = "C library that generates TOTP and HOTP"; homepage = "https://github.com/paolostivanin/libcotp";