diff options
author | OPNA2608 <christoph.neidahl@gmail.com> | 2023-10-23 13:16:35 +0200 |
---|---|---|
committer | OPNA2608 <christoph.neidahl@gmail.com> | 2023-12-23 22:45:22 +0100 |
commit | 0eaae22d8440d03e8c8ab6714de674c94dc17236 (patch) | |
tree | 2301900ab304ca8bcba6dd019118901e10a069f6 /pkgs/desktops | |
parent | ff0f5bfb902c7a75caa159028d884232f428146f (diff) |
lomiri.history-service: Fix pkg-config
Diffstat (limited to 'pkgs/desktops')
-rw-r--r-- | pkgs/desktops/lomiri/services/history-service/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/desktops/lomiri/services/history-service/default.nix b/pkgs/desktops/lomiri/services/history-service/default.nix index b15bd17058bc8..a13927e008853 100644 --- a/pkgs/desktops/lomiri/services/history-service/default.nix +++ b/pkgs/desktops/lomiri/services/history-service/default.nix @@ -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 |