Skip to content

Commit

Permalink
lomiri.hfd-service: 0.2.0 -> 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
OPNA2608 committed Dec 3, 2023
1 parent 440cd02 commit a8a5758
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/desktops/lomiri/services/hfd-service/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, lib
, fetchFromGitLab
, gitUpdater
, accountsservice
, cmake
, cmake-extras
, deviceinfo
Expand All @@ -15,13 +16,13 @@

stdenv.mkDerivation (finalAttrs: {
pname = "hfd-service";
version = "0.2.0";
version = "0.2.1";

src = fetchFromGitLab {
owner = "ubports";
repo = "development/core/hfd-service";
rev = finalAttrs.version;
hash = "sha256-F1MLYcCYe2GAPNO3UuONM4/j9AnV+V2YgePBn2QY5zM=";
hash = "sha256-KcHwLTSdo86YCteUsPndoxmLf23SOEhROc5cJQ8GS1Q=";
};

postPatch = ''
Expand All @@ -31,6 +32,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"
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}'
substituteInPlace src/CMakeLists.txt \
--replace "\''${DBUS_INTERFACES_DIR}/org.freedesktop.Accounts.xml" '${accountsservice}/share/dbus-1/interfaces/org.freedesktop.Accounts.xml'
'';

strictDeps = true;
Expand All @@ -41,6 +47,7 @@ stdenv.mkDerivation (finalAttrs: {
];

buildInputs = [
accountsservice
cmake-extras
deviceinfo
libgbinder
Expand Down

0 comments on commit a8a5758

Please sign in to comment.