about summary refs log tree commit diff
path: root/pkgs/applications/misc/xautoclick/default.nix
blob: 3429e80f0540e9f80df7e72a080cf2c9ee2b58d7 (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
{ lib, stdenv, fetchFromGitHub, xorg, pkg-config
, cmake, libevdev
, gtkSupport ? true, gtk3, pcre, glib, wrapGAppsHook
, fltkSupport ? true, fltk
, qtSupport ? true, qt5
}:

stdenv.mkDerivation rec {
  pname = "xautoclick";
  version = "0.34";

  src = fetchFromGitHub {
    owner = "qarkai";
    repo = "xautoclick";
    rev = "v${version}";
    sha256 = "GN3zI5LQnVmRC0KWffzUTHKrxcqnstiL55hopwTTwpE=";
  };

  nativeBuildInputs = [ cmake pkg-config ];
  buildInputs = [ libevdev xorg.libXtst ]
    ++ lib.optionals gtkSupport [ gtk3 pcre glib wrapGAppsHook ]
    ++ lib.optionals fltkSupport [ fltk ]
    ++ lib.optionals qtSupport [ qt5.qtbase qt5.wrapQtAppsHook ];

  meta = with lib; {
    description = "Autoclicker application, which enables you to automatically click the left mousebutton";
    homepage = "https://github.com/qarkai/xautoclick";
    license = licenses.gpl2;
    platforms = platforms.linux;
  };
}