2016-03-19 20:11:24 +00:00
|
|
|
{ stdenv, fetchurl, xorg, pkgconfig
|
2016-09-11 21:24:51 +00:00
|
|
|
, gtkSupport ? true, gtk2
|
2016-03-19 20:11:24 +00:00
|
|
|
, qtSupport ? true, qt4
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2016-03-19 20:11:24 +00:00
|
|
|
version = "0.31";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "xautoclick";
|
2016-03-19 20:11:24 +00:00
|
|
|
src = fetchurl {
|
2016-07-20 05:28:40 +00:00
|
|
|
url = "mirror://sourceforge/project/xautoclick/xautoclick/xautoclick-0.31/xautoclick-0.31.tar.gz";
|
2016-03-19 20:11:24 +00:00
|
|
|
sha256 = "0h522f12a7v2b89411xm51iwixmjp2mp90rnizjgiakx9ajnmqnm";
|
|
|
|
};
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXtst xorg.xinput xorg.libXi xorg.libXext ]
|
2016-09-11 21:24:51 +00:00
|
|
|
++ stdenv.lib.optionals gtkSupport [ gtk2 ]
|
2016-03-19 20:11:24 +00:00
|
|
|
++ stdenv.lib.optionals qtSupport [ qt4 ];
|
|
|
|
patchPhase = ''
|
2016-04-16 17:47:46 +00:00
|
|
|
substituteInPlace configure --replace /usr/X11R6 ${xorg.libX11.dev}
|
2016-03-19 20:11:24 +00:00
|
|
|
'';
|
|
|
|
preConfigure = stdenv.lib.optional qtSupport ''
|
|
|
|
mkdir .bin
|
|
|
|
ln -s ${qt4}/bin/moc .bin/moc-qt4
|
|
|
|
addToSearchPath PATH .bin
|
2019-01-04 19:33:51 +00:00
|
|
|
sed -i -e "s@LD=\$_cc@LD=\$_cxx@" configure
|
2016-03-19 20:11:24 +00:00
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
2018-09-01 12:27:45 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Autoclicker application, which enables you to automatically click the left mousebutton";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://xautoclick.sourceforge.net";
|
2018-09-01 12:27:45 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2016-03-19 20:11:24 +00:00
|
|
|
}
|