8 , gobject-introspection
24 themes = fetchFromGitLab {
25 domain = "source.puri.sm";
27 repo = "feedbackd-device-themes";
29 sha256 = "sha256-YK9fJ3awmhf1FAhdz95T/POivSO93jsNApm+u4OOZ80=";
32 stdenv.mkDerivation rec {
36 outputs = [ "out" "dev" "devdoc" ];
38 src = fetchFromGitLab {
39 domain = "source.puri.sm";
43 hash = "sha256-l5rfMx3ElW25A5WVqzfKBp57ebaNC9msqV7mvnwv10s=";
44 fetchSubmodules = true;
53 docutils # for rst2man
84 mkdir -p $out/lib/udev/rules.d
85 sed "s|/usr/libexec/|$out/libexec/|" < $src/debian/feedbackd.udev > $out/lib/udev/rules.d/90-feedbackd.rules
86 cp ${themes}/data/* $out/share/feedbackd/themes/
90 # Move developer documentation to devdoc output.
91 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
92 if [[ -d "$out/share/doc" ]]; then
93 find -L "$out/share/doc" -type f -regex '.*\.devhelp2?' -print0 \
94 | while IFS= read -r -d ''' file; do
95 moveToOutput "$(dirname "''${file/"$out/"/}")" "$devdoc"
101 description = "A daemon to provide haptic (and later more) feedback on events";
102 homepage = "https://source.puri.sm/Librem5/feedbackd";
103 license = licenses.gpl3Plus;
104 maintainers = with maintainers; [ pacman99 tomfitzhenry ];
105 platforms = platforms.linux;