11 rustPlatform.buildRustPackage rec {
12 pname = "mouse-actions";
15 src = fetchFromGitHub {
17 repo = "mouse-actions";
19 hash = "sha256-02E4HrKIoBV3qZPVH6Tjz9Bv/mh5C8amO1Ilmd+YO5g=";
22 cargoHash = "sha256-5SUVZlrXIPtlu9KBzucZDCp5t5t8Z4/Nfht2Pw5agVI=";
36 mkdir -p $out/etc/udev/rules.d/
37 echo 'KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' >> $out/etc/udev/rules.d/80-mouse-actions.rules
38 echo 'KERNEL=="/dev/input/event*", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' >> $out/etc/udev/rules.d/80-mouse-actions.rules
42 description = "Execute commands from mouse events such as clicks/wheel on the side/corners of the screen, or drawing shapes";
43 homepage = "https://github.com/jersou/mouse-actions";
44 license = licenses.mit;
45 maintainers = with maintainers; [ rgri ];
46 mainProgram = "mouse-actions";
47 platforms = platforms.linux;