lomiri.history-service: Fix pkg-config

This commit is contained in:
OPNA2608 2023-10-23 13:16:35 +02:00
parent ff0f5bfb90
commit 0eaae22d84

View File

@ -11,7 +11,6 @@
, gnome
, libphonenumber
, libqtdbustest
, lomiri-api
, pkg-config
, protobuf
, qtbase
@ -92,6 +91,15 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace config.h.in \
--replace '@CMAKE_INSTALL_PREFIX@/@HISTORY_PLUGIN_PATH@' '@HISTORY_PLUGIN_PATH@'
# Honour GNUInstallDirs
substituteInPlace src/CMakeLists.txt \
--replace 'INCLUDE_INSTALL_DIR include' 'INCLUDE_INSTALL_DIR ''${CMAKE_INSTALL_FULL_INCLUDEDIR}'
# Fix concatenations & variable references
substituteInPlace src/history-service.pc.in \
--replace 'LIB_INSTALL_DIR' 'CMAKE_INSTALL_FULL_LIBDIR' \
--replace "\''${CMAKE_INSTALL_PREFIX}/\''${" "\''${" \
'' + (if finalAttrs.doCheck then ''
# Tests launch these DBus services, fix paths related to them