24 stdenv.mkDerivation (finalAttrs: {
25 pname = "mouse-actions-gui";
28 src = fetchFromGitHub {
30 repo = "mouse-actions";
31 rev = "refs/tags/v${finalAttrs.version}";
32 hash = "sha256-44F4CdsDHuN2FuijnpfmoFy4a/eAbYOoBYijl9mOctg=";
35 sourceRoot = "${finalAttrs.src.name}/config-editor";
38 npmHooks.npmConfigHook
40 rustPlatform.cargoSetupHook
59 npmDeps = fetchNpmDeps {
60 inherit (finalAttrs) src sourceRoot;
61 hash = "sha256-amDTYAvEoDHb7+dg39+lUne0dv0M9vVe1vHoXk2agZA=";
64 cargoRoot = "src-tauri";
65 buildAndTestSubdir = finalAttrs.cargoRoot;
67 cargoDeps = rustPlatform.fetchCargoTarball {
68 inherit (finalAttrs) pname version src;
69 sourceRoot = "${finalAttrs.sourceRoot}/${finalAttrs.cargoRoot}";
70 hash = "sha256-H8TMpYFJWp227jPA5H2ZhSqTMiT/U6pT6eLyjibuoLU=";
74 install -Dm644 ${./80-mouse-actions.rules} $out/etc/udev/rules.d/80-mouse-actions.rules
78 changelog = "https://github.com/jersou/mouse-actions/blob/${finalAttrs.src.rev}/CHANGELOG.md";
79 description = "Mouse event based command executor, a mix between Easystroke and Comiz edge commands";
80 homepage = "https://github.com/jersou/mouse-actions";
81 license = lib.licenses.mit;
82 mainProgram = "mouse-actions-gui";
83 maintainers = with lib.maintainers; [ tomasajt ];
84 platforms = lib.platforms.linux;