2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, xorg, pkg-config
|
2020-11-02 22:44:34 +00:00
|
|
|
, cmake, libevdev
|
|
|
|
, gtkSupport ? true, gtk3, pcre, glib, wrapGAppsHook
|
|
|
|
, fltkSupport ? true, fltk
|
|
|
|
, qtSupport ? true, qt5
|
2016-03-19 20:11:24 +00:00
|
|
|
}:
|
|
|
|
|
2020-11-02 22:44:34 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xautoclick";
|
2020-11-02 22:44:34 +00:00
|
|
|
version = "0.34";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qarkai";
|
|
|
|
repo = "xautoclick";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "GN3zI5LQnVmRC0KWffzUTHKrxcqnstiL55hopwTTwpE=";
|
2016-03-19 20:11:24 +00:00
|
|
|
};
|
2020-11-02 22:44:34 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ libevdev xorg.libXtst ]
|
|
|
|
++ stdenv.lib.optionals gtkSupport [ gtk3 pcre glib wrapGAppsHook ]
|
|
|
|
++ stdenv.lib.optionals fltkSupport [ fltk ]
|
|
|
|
++ stdenv.lib.optionals qtSupport [ qt5.qtbase qt5.wrapQtAppsHook ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-01 13:27:45 +01:00
|
|
|
description = "Autoclicker application, which enables you to automatically click the left mousebutton";
|
2020-11-02 22:44:34 +00:00
|
|
|
homepage = "https://github.com/qarkai/xautoclick";
|
2018-09-01 13:27:45 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2016-03-19 20:11:24 +00:00
|
|
|
}
|