18 stdenv.mkDerivation (finalAttrs: {
19 pname = "hfd-service";
22 src = fetchFromGitLab {
24 repo = "development/core/hfd-service";
25 rev = finalAttrs.version;
26 hash = "sha256-OpT1vNjnyq66v54EoGOZOUb4HECD4WRJRh9hYMB0GI0=";
30 substituteInPlace qt/feedback-plugin/CMakeLists.txt \
31 --replace "\''${CMAKE_INSTALL_LIBDIR}/qt5/plugins" "\''${CMAKE_INSTALL_PREFIX}/${qtbase.qtPluginPrefix}"
33 # Queries pkg-config via pkg_get_variable, can't override prefix
34 substituteInPlace init/CMakeLists.txt \
35 --replace 'pkg_get_variable(SYSTEMD_SYSTEM_DIR systemd systemdsystemunitdir)' 'set(SYSTEMD_SYSTEM_DIR ''${CMAKE_INSTALL_PREFIX}/lib/systemd/system)'
36 substituteInPlace CMakeLists.txt \
37 --replace 'pkg_get_variable(AS_INTERFACES_DIR accountsservice interfacesdir)' 'set(AS_INTERFACES_DIR "''${CMAKE_INSTALL_FULL_DATADIR}/accountsservice/interfaces")' \
38 --replace '../../dbus-1/interfaces' "\''${CMAKE_INSTALL_PREFIX}/\''${DBUS_INTERFACES_DIR}" \
39 --replace 'DESTINATION ''${DBUS_INTERFACES_DIR}' 'DESTINATION ''${CMAKE_INSTALL_PREFIX}/''${DBUS_INTERFACES_DIR}'
40 substituteInPlace src/CMakeLists.txt \
41 --replace "\''${DBUS_INTERFACES_DIR}/org.freedesktop.Accounts.xml" '${accountsservice}/share/dbus-1/interfaces/org.freedesktop.Accounts.xml'
64 (lib.cmakeBool "ENABLE_LIBHYBRIS" false)
67 dontWrapQtApps = true;
69 passthru.updateScript = gitUpdater { };
72 description = "DBus-activated service that manages human feedback devices such as LEDs and vibrators on mobile devices";
73 homepage = "https://gitlab.com/ubports/development/core/hfd-service";
74 changelog = "https://gitlab.com/ubports/development/core/hfd-service/-/blob/${finalAttrs.version}/ChangeLog";
75 license = licenses.lgpl3Only;
76 maintainers = teams.lomiri.members;
77 platforms = platforms.linux;