From d019e49c2cd53188b73cfe5ab7795fe6a8a545ef Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Thu, 6 Apr 2023 18:33:51 -0700 Subject: [PATCH] howard-hinnant-date: fix pkg-config variable substitutions --- .../libraries/howard-hinnant-date/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/libraries/howard-hinnant-date/default.nix b/pkgs/development/libraries/howard-hinnant-date/default.nix index b69c903adf08..4f3e74f5d8a8 100644 --- a/pkgs/development/libraries/howard-hinnant-date/default.nix +++ b/pkgs/development/libraries/howard-hinnant-date/default.nix @@ -35,6 +35,15 @@ stdenv.mkDerivation rec { }) ]; + # Tweaks to fix undefined variable substitutions + # https://github.com/HowardHinnant/date/pull/538#pullrequestreview-1373268697 + postPatch = '' + substituteInPlace date.pc.in \ + --replace '@CMAKE_INSTALL_LIB@' '@CMAKE_INSTALL_FULL_LIBDIR@' \ + --replace '@CMAKE_INSTALL_INCLUDE@' '@CMAKE_INSTALL_FULL_INCLUDEDIR@' \ + --replace '@PACKAGE_VERSION@' '${version}' + ''; + nativeBuildInputs = [ cmake ]; cmakeFlags = [