3
0
Fork 0
forked from mirrors/nixpkgs

add xautoclick

This commit is contained in:
Jude Taylor 2016-03-19 13:11:24 -07:00
parent 455ec64d11
commit 76947878cb
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, fetchurl, xorg, pkgconfig
, gtkSupport ? true, gtk
, qtSupport ? true, qt4
}:
stdenv.mkDerivation rec {
version = "0.31";
name = "xautoclick-${version}";
src = fetchurl {
url = "http://downloads.sourceforge.net/project/xautoclick/xautoclick/xautoclick-0.31/xautoclick-0.31.tar.gz";
sha256 = "0h522f12a7v2b89411xm51iwixmjp2mp90rnizjgiakx9ajnmqnm";
};
buildInputs = [ xorg.libX11 xorg.libXtst xorg.xinput xorg.libXi xorg.libXext pkgconfig ]
++ stdenv.lib.optionals gtkSupport [ gtk ]
++ stdenv.lib.optionals qtSupport [ qt4 ];
patchPhase = ''
substituteInPlace configure --replace /usr/X11R6 ${xorg.libX11}
'';
preConfigure = stdenv.lib.optional qtSupport ''
mkdir .bin
ln -s ${qt4}/bin/moc .bin/moc-qt4
addToSearchPath PATH .bin
'';
}

View file

@ -3658,6 +3658,8 @@ let
python = python2;
};
xautoclick = callPackage ../applications/misc/xautoclick {};
xl2tpd = callPackage ../tools/networking/xl2tpd { };
xe = callPackage ../tools/system/xe { };