blob: 22cb19830c7be09f08e219aa0221ebd065611ab6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, meson
, ninja
, pkg-config
, wrapGAppsHook3
, gtk3
, libXtst
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xclicker";
version = "1.5.0";
src = fetchFromGitHub {
owner = "robiot";
repo = "xclicker";
rev = "v${finalAttrs.version}";
hash = "sha256-3D49iMzCCT9Z2Pf5INHYFZusG0BQI7La7lLaSVM/4mc=";
};
patches = [
(fetchpatch {
name = "fix-malloc-size.patch";
url = "https://github.com/robiot/xclicker/commit/c99f69a747e9df75fb3676be20a3ec805526d022.patch";
hash = "sha256-ESbMBusJVNfbGxlEn1Kby00mnXvM5H0r03bX5ofC6Fg=";
})
];
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook3
];
buildInputs = [
gtk3
libXtst
];
mesonBuildType = "release";
installPhase = ''
runHook preInstall
install -Dm755 ./src/xclicker $out/bin/xclicker
install -Dm644 $src/assets/xclicker.desktop $out/share/applications/xclicker.desktop
install -Dm644 $src/assets/icon.png $out/share/pixmaps/xclicker.png
runHook postInstall
'';
meta = {
changelog = "https://github.com/robiot/xclicker/releases/tag/${finalAttrs.src.rev}";
description = "Fast gui autoclicker for x11 linux desktops";
homepage = "https://xclicker.xyz/";
license = lib.licenses.gpl3Only;
mainProgram = "xclicker";
maintainers = with lib.maintainers; [ tomasajt ];
platforms = lib.platforms.linux;
};
})
|