diff options
author | Jude Taylor <me@jude.bio> | 2016-03-19 13:11:24 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2016-03-19 13:11:29 -0700 |
commit | 76947878cb79562c4a6be92bfb5952f0aa29da56 (patch) | |
tree | 33294322b0b30422fa6191cc237e5ebbd611a804 /pkgs/applications/misc/xautoclick | |
parent | 455ec64d11db07a5b02ca0cf2578507bc7137e58 (diff) |
add xautoclick
Diffstat (limited to 'pkgs/applications/misc/xautoclick')
-rw-r--r-- | pkgs/applications/misc/xautoclick/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/applications/misc/xautoclick/default.nix b/pkgs/applications/misc/xautoclick/default.nix new file mode 100644 index 0000000000000..49a94ac397973 --- /dev/null +++ b/pkgs/applications/misc/xautoclick/default.nix @@ -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 + ''; +} |