1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/applications/misc/xautoclick/default.nix

33 lines
1 KiB
Nix
Raw Normal View History

2016-03-19 20:11:24 +00:00
{ stdenv, fetchurl, xorg, pkgconfig
, gtkSupport ? true, gtk2
2016-03-19 20:11:24 +00:00
, qtSupport ? true, qt4
}:
stdenv.mkDerivation rec {
version = "0.31";
name = "xautoclick-${version}";
src = fetchurl {
url = "mirror://sourceforge/project/xautoclick/xautoclick/xautoclick-0.31/xautoclick-0.31.tar.gz";
2016-03-19 20:11:24 +00:00
sha256 = "0h522f12a7v2b89411xm51iwixmjp2mp90rnizjgiakx9ajnmqnm";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ xorg.libX11 xorg.libXtst xorg.xinput xorg.libXi xorg.libXext ]
++ stdenv.lib.optionals gtkSupport [ gtk2 ]
2016-03-19 20:11:24 +00:00
++ stdenv.lib.optionals qtSupport [ qt4 ];
patchPhase = ''
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
'';
2018-09-01 13:27:45 +01:00
meta = with stdenv.lib; {
description = "Autoclicker application, which enables you to automatically click the left mousebutton";
homepage = http://xautoclick.sourceforge.net;
license = licenses.gpl2;
platforms = platforms.linux;
};
2016-03-19 20:11:24 +00:00
}