7 , gobject-introspection
25 themes = fetchFromGitLab {
26 domain = "source.puri.sm";
28 repo = "feedbackd-device-themes";
30 hash = "sha256-kY/+DyRxKEUzq7ctl6Va14AKUCpWU7NRQhJOwhtkJp8=";
33 stdenv.mkDerivation (finalAttrs: {
37 outputs = [ "out" "dev" "devdoc" ];
39 src = fetchFromGitLab {
40 domain = "source.puri.sm";
43 rev = "v${finalAttrs.version}";
44 hash = "sha256-ta14DYqkid8Cp8fx9ZMGOOJroCBszN9/VrTN6mrpTZg=";
53 docutils # for rst2man
76 # Make compiling work when doCheck = false
77 "-Dtests=${lib.boolToString finalAttrs.finalPackage.doCheck}"
88 mkdir -p $out/lib/udev/rules.d
89 sed "s|/usr/libexec/|$out/libexec/|" < $src/data/90-feedbackd.rules > $out/lib/udev/rules.d/90-feedbackd.rules
90 cp ${themes}/data/* $out/share/feedbackd/themes/
94 # Move developer documentation to devdoc output.
95 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
96 if [[ -d "$out/share/doc" ]]; then
97 find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \
98 | while IFS= read -r -d ''' file; do
99 moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc"
105 description = "Daemon to provide haptic (and later more) feedback on events";
106 homepage = "https://source.puri.sm/Librem5/feedbackd";
107 license = licenses.gpl3Plus;
108 maintainers = with maintainers; [ pacman99 ];
109 platforms = platforms.linux;