mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 09:03:42 +00:00
lomiri.history-service: Fix pkg-config
This commit is contained in:
parent
ff0f5bfb90
commit
0eaae22d84
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user