Merge pull request #225084 from r-burns/howard-hinnant-date

howard-hinnant-date: fix pkg-config variable substitutions
This commit is contained in:
Ryan Burns 2023-04-07 16:58:20 -07:00 committed by GitHub
commit 2e7d54cfde
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [