12 rustPlatform.buildRustPackage rec {
13 pname = "mouse-actions";
16 src = fetchFromGitHub {
18 repo = "mouse-actions";
20 hash = "sha256-44F4CdsDHuN2FuijnpfmoFy4a/eAbYOoBYijl9mOctg=";
23 cargoHash = "sha256-N7BaEvQyKtM8hkDJJTlFKzfq01KMiGZ0fuXHcKctfLc=";
37 mkdir -p $out/etc/udev/rules.d/
38 echo 'KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' >> $out/etc/udev/rules.d/80-mouse-actions.rules
39 echo 'KERNEL=="/dev/input/event*", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"' >> $out/etc/udev/rules.d/80-mouse-actions.rules
43 description = "Execute commands from mouse events such as clicks/wheel on the side/corners of the screen, or drawing shapes";
44 homepage = "https://github.com/jersou/mouse-actions";
45 license = licenses.mit;
46 maintainers = with maintainers; [ rgri ];
47 mainProgram = "mouse-actions";
48 platforms = platforms.linux;