xautoclick: 0.31 -> 0.34
Migrate to Gtk3 and Qt5 Adds support for fltk too
This commit is contained in:
parent
c0efa713da
commit
10687019df
@ -1,32 +1,30 @@
|
|||||||
{ stdenv, fetchurl, xorg, pkgconfig
|
{ stdenv, fetchFromGitHub, xorg, pkg-config
|
||||||
, gtkSupport ? true, gtk2
|
, cmake, libevdev
|
||||||
, qtSupport ? true, qt4
|
, gtkSupport ? true, gtk3, pcre, glib, wrapGAppsHook
|
||||||
|
, fltkSupport ? true, fltk
|
||||||
|
, qtSupport ? true, qt5
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.31";
|
|
||||||
pname = "xautoclick";
|
pname = "xautoclick";
|
||||||
src = fetchurl {
|
version = "0.34";
|
||||||
url = "mirror://sourceforge/project/xautoclick/xautoclick/xautoclick-0.31/xautoclick-0.31.tar.gz";
|
|
||||||
sha256 = "0h522f12a7v2b89411xm51iwixmjp2mp90rnizjgiakx9ajnmqnm";
|
src = fetchFromGitHub {
|
||||||
|
owner = "qarkai";
|
||||||
|
repo = "xautoclick";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "GN3zI5LQnVmRC0KWffzUTHKrxcqnstiL55hopwTTwpE=";
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
|
||||||
buildInputs = [ xorg.libX11 xorg.libXtst xorg.xinput xorg.libXi xorg.libXext ]
|
nativeBuildInputs = [ cmake pkg-config ];
|
||||||
++ stdenv.lib.optionals gtkSupport [ gtk2 ]
|
buildInputs = [ libevdev xorg.libXtst ]
|
||||||
++ stdenv.lib.optionals qtSupport [ qt4 ];
|
++ stdenv.lib.optionals gtkSupport [ gtk3 pcre glib wrapGAppsHook ]
|
||||||
patchPhase = ''
|
++ stdenv.lib.optionals fltkSupport [ fltk ]
|
||||||
substituteInPlace configure --replace /usr/X11R6 ${xorg.libX11.dev}
|
++ stdenv.lib.optionals qtSupport [ qt5.qtbase qt5.wrapQtAppsHook ];
|
||||||
'';
|
|
||||||
preConfigure = stdenv.lib.optional qtSupport ''
|
|
||||||
mkdir .bin
|
|
||||||
ln -s ${qt4}/bin/moc .bin/moc-qt4
|
|
||||||
addToSearchPath PATH .bin
|
|
||||||
sed -i -e "s@LD=\$_cc@LD=\$_cxx@" configure
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Autoclicker application, which enables you to automatically click the left mousebutton";
|
description = "Autoclicker application, which enables you to automatically click the left mousebutton";
|
||||||
homepage = "http://xautoclick.sourceforge.net";
|
homepage = "https://github.com/qarkai/xautoclick";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user