mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 03:25:36 +00:00
wl-clicker: init at v0.3.1 (#330684)
This commit is contained in:
commit
e2bf75c862
50
pkgs/by-name/wl/wl-clicker/package.nix
Normal file
50
pkgs/by-name/wl/wl-clicker/package.nix
Normal 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;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user