Merge pull request #276248 from OPNA2608/fix/hfd-service-accountsservice-interfaces
lomiri.hfd-service: Fix accountsservice interface linking
This commit is contained in:
commit
ed02ccffac
1 changed files with 4 additions and 3 deletions
|
@ -31,10 +31,11 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
|
||||
# Queries pkg-config via pkg_get_variable, can't override prefix
|
||||
substituteInPlace init/CMakeLists.txt \
|
||||
--replace "\''${SYSTEMD_SYSTEM_DIR}" "$out/lib/systemd/system"
|
||||
--replace 'pkg_get_variable(SYSTEMD_SYSTEM_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_DIR ''${CMAKE_INSTALL_PREFIX}/lib/systemd/system)'
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace 'pkg_get_variable(AS_INTERFACES_DIR accountsservice interfacesdir)' 'set(AS_INTERFACES_DIR "''${CMAKE_INSTALL_DATADIR}/accountsservice/interfaces")' \
|
||||
--replace 'DESTINATION ''${DBUS_INTERFACES_DIR}' 'DESTINATION ${placeholder "out"}/''${DBUS_INTERFACES_DIR}'
|
||||
--replace 'pkg_get_variable(AS_INTERFACES_DIR accountsservice interfacesdir)' 'set(AS_INTERFACES_DIR "''${CMAKE_INSTALL_FULL_DATADIR}/accountsservice/interfaces")' \
|
||||
--replace '../../dbus-1/interfaces' "\''${CMAKE_INSTALL_PREFIX}/\''${DBUS_INTERFACES_DIR}" \
|
||||
--replace 'DESTINATION ''${DBUS_INTERFACES_DIR}' 'DESTINATION ''${CMAKE_INSTALL_PREFIX}/''${DBUS_INTERFACES_DIR}'
|
||||
substituteInPlace src/CMakeLists.txt \
|
||||
--replace "\''${DBUS_INTERFACES_DIR}/org.freedesktop.Accounts.xml" '${accountsservice}/share/dbus-1/interfaces/org.freedesktop.Accounts.xml'
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue