wl-clicker: cleanup

This commit is contained in:
Yiyu Zhou
2025-11-20 23:04:18 -08:00
parent 5e93bc658c
commit 37c9a46f4b
+11 -4
View File
@@ -5,6 +5,7 @@
wayland-scanner,
wlr-protocols,
wayland,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -20,22 +21,28 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "phoneticalb";
repo = "wl-clicker";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-+k3iZOv12WbqpeYbYjIXBIB4mO2DrY1pl+MJn2B+cZA=";
};
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install build/wl-clicker $out/bin/wl-clicker
install -D build/wl-clicker --target-directory="$out"/bin
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Wayland autoclicker";
longDescription = "Script for auto clicking at incredibly high speeds - user must be a part of `input` group to run.";
longDescription = ''
Script for auto clicking at incredibly high speeds - user must
be a part of `input` group to run.
'';
homepage = "https://github.com/phoneticalb/wl-clicker";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.Flameopathic ];