5 , gobject-introspection
21 themes = fetchFromGitLab {
22 domain = "source.puri.sm";
24 repo = "feedbackd-device-themes";
25 rev = "v0.0.20220523";
26 sha256 = "sha256-RyUZj+tpJSYhyoK+E98CTIoHwXwBdB1YHVnO5821exo=";
29 stdenv.mkDerivation rec {
31 # Not an actual upstream project release,
32 # only a Debian package release that is tagged in the upstream repo
33 version = "0.0.0+git20220520";
35 outputs = [ "out" "dev" ]
36 # remove if cross-compiling gobject-introspection works
37 ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
39 src = fetchFromGitLab {
40 domain = "source.puri.sm";
44 hash = "sha256-4ftPC6LnX0kKFYVyH85yCH43B3YjuaZM5rzr8TGgZvc=";
67 "-Dgtk_doc=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
69 # TODO(mindavi): introspection broken due to https://github.com/NixOS/nixpkgs/issues/72868
70 # can be removed if cross-compiling gobject-introspection works.
71 "-Dintrospection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "enabled" else "disabled"}"
81 mkdir -p $out/lib/udev/rules.d
82 sed "s|/usr/libexec/|$out/libexec/|" < $src/debian/feedbackd.udev > $out/lib/udev/rules.d/90-feedbackd.rules
83 cp ${themes}/data/* $out/share/feedbackd/themes/
87 description = "A daemon to provide haptic (and later more) feedback on events";
88 homepage = "https://source.puri.sm/Librem5/feedbackd";
89 license = licenses.gpl3Plus;
90 maintainers = with maintainers; [ pacman99 tomfitzhenry ];
91 platforms = platforms.linux;