feedbackd: Add udev rules to output

This commit is contained in:
Zhaofeng Li 2021-05-01 06:03:42 +00:00
parent 6704ec5710
commit f3e2883167

View File

@ -41,6 +41,11 @@ stdenv.mkDerivation rec {
json-glib json-glib
]; ];
postInstall = ''
mkdir -p $out/lib/udev/rules.d
sed "s|/usr/libexec/|$out/libexec/|" < $src/debian/feedbackd.udev > $out/lib/udev/rules.d/90-feedbackd.rules
'';
meta = with lib; { meta = with lib; {
description = "A daemon to provide haptic (and later more) feedback on events"; description = "A daemon to provide haptic (and later more) feedback on events";
homepage = "https://source.puri.sm/Librem5/feedbackd"; homepage = "https://source.puri.sm/Librem5/feedbackd";