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