From 961233f91f5ee39149d44b0896d1d716e17cdcf7 Mon Sep 17 00:00:00 2001 From: imsuck Date: Sun, 30 Mar 2025 09:28:24 +0700 Subject: [PATCH] mouseless: init at 0.2.0 mouseless: update metadata mouseless: add changelog to metadata Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com> mouseless: follow convention for description mouseless: add `platforms = linux` (metadata) Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com> mouseless: use `finalAttrs` instead of `let in` --- pkgs/by-name/mo/mouseless/package.nix | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/mo/mouseless/package.nix diff --git a/pkgs/by-name/mo/mouseless/package.nix b/pkgs/by-name/mo/mouseless/package.nix new file mode 100644 index 000000000000..84e50ab78cc6 --- /dev/null +++ b/pkgs/by-name/mo/mouseless/package.nix @@ -0,0 +1,34 @@ +{ + buildGoModule, + fetchFromGitHub, + lib, +}: + +buildGoModule (finalAttrs: { + pname = "mouseless"; + version = "0.2.0"; + + vendorHash = "sha256-2q7L9BVcAaT4h/vUcNjVc5nOAFnb4J3WabcEGxI+hsA="; + + src = fetchFromGitHub { + owner = "jbensmann"; + repo = "mouseless"; + tag = "v${finalAttrs.version}"; + hash = "sha256-iDSTV2ugvHoBuQWmMg2ILXP/Mlt7eq5B2dVaB0jwJOE="; + }; + + meta = { + description = "Replacement for the mouse in Linux"; + longDescription = '' + This program allows you to control the mouse pointer in Linux + with the keyboard. It works in all Linux distributions, even those + running with Wayland. + ''; + homepage = "https://github.com/jbensmann/mouseless"; + changelog = "https://github.com/jbensmann/mouseless/releases/tag/v${finalAttrs.version}"; + maintainers = with lib.maintainers; [ imsuck ]; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + mainProgram = "mouseless"; + }; +})