dbus-cpp: Fix pkg-config file

lomiri.mediascanner2 errored due to includedir being a non-existent path.
TIL our pkg-config patcher requires ${prefix} to work.
This commit is contained in:
OPNA2608 2023-10-18 23:48:09 +02:00
parent 99202824be
commit 68766ab4a8

View file

@ -60,6 +60,10 @@ stdenv.mkDerivation (finalAttrs: {
# Warning on aarch64-linux breaks build due to -Werror
substituteInPlace CMakeLists.txt \
--replace '-Werror' ""
# pkg-config output patching hook expects prefix variable here
substituteInPlace data/dbus-cpp.pc.in \
--replace 'includedir=''${exec_prefix}' 'includedir=''${prefix}'
'' + lib.optionalString (!finalAttrs.doCheck) ''
sed -i -e '/add_subdirectory(tests)/d' CMakeLists.txt
'';