wl-clicker: init at v0.3.1 (#330684)

This commit is contained in:
Wolfgang Walther 2024-12-04 09:19:25 +01:00 committed by GitHub
commit e2bf75c862
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,50 @@
{
lib,
fetchFromGitHub,
stdenv,
wayland-scanner,
wlr-protocols,
wayland,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "wl-clicker";
version = "0.3.1";
nativeBuildInputs = [ wayland-scanner ];
buildInputs = [
wlr-protocols
wayland
];
src = fetchFromGitHub {
owner = "phonetic112";
repo = "wl-clicker";
rev = "v${finalAttrs.version}";
hash = "sha256-HuUK1kkqIdB5SdcewJ1J8elzqrFaFWC3BRV3GgcasTU=";
};
postPatch = ''
sed -i 's|/usr|${wlr-protocols}|g' Makefile
'';
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install build/wl-clicker $out/bin/wl-clicker
runHook postInstall
'';
meta = {
description = "Wayland autoclicker";
longDescription = "Script for auto clicking at incredibly high speeds - user must be a part of `input` group to run.";
homepage = "https://github.com/phonetic112/wl-clicker";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.Flameopathic ];
mainProgram = "wl-clicker";
platforms = lib.platforms.linux;
broken = stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64;
};
})