51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|||
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;
|
|||
};
|
|||
})
|