2016-03-19 21:11:24 +01:00
|
|
|
{ stdenv, fetchurl, xorg, pkgconfig
|
2016-09-11 23:24:51 +02:00
|
|
|
, gtkSupport ? true, gtk2
|
2016-03-19 21:11:24 +01:00
|
|
|
, qtSupport ? true, qt4
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.31";
|
|
|
|
name = "xautoclick-${version}";
|
|
|
|
src = fetchurl {
|
2016-07-20 07:28:40 +02:00
|
|
|
url = "mirror://sourceforge/project/xautoclick/xautoclick/xautoclick-0.31/xautoclick-0.31.tar.gz";
|
2016-03-19 21:11:24 +01:00
|
|
|
sha256 = "0h522f12a7v2b89411xm51iwixmjp2mp90rnizjgiakx9ajnmqnm";
|
|
|
|
};
|
|
|
|
buildInputs = [ xorg.libX11 xorg.libXtst xorg.xinput xorg.libXi xorg.libXext pkgconfig ]
|
2016-09-11 23:24:51 +02:00
|
|
|
++ stdenv.lib.optionals gtkSupport [ gtk2 ]
|
2016-03-19 21:11:24 +01:00
|
|
|
++ stdenv.lib.optionals qtSupport [ qt4 ];
|
|
|
|
patchPhase = ''
|
2016-04-16 19:47:46 +02:00
|
|
|
substituteInPlace configure --replace /usr/X11R6 ${xorg.libX11.dev}
|
2016-03-19 21:11:24 +01:00
|
|
|
'';
|
|
|
|
preConfigure = stdenv.lib.optional qtSupport ''
|
|
|
|
mkdir .bin
|
|
|
|
ln -s ${qt4}/bin/moc .bin/moc-qt4
|
|
|
|
addToSearchPath PATH .bin
|
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2016-03-19 21:11:24 +01:00
|
|
|
}
|