summary refs log tree commit diff
path: root/pkgs/tools/X11/xdotool/default.nix
blob: 9224c3b2d9cd64eff48013230beb610bf5560ddf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, libX11, perl, libXtst, xextproto, libXi, libXinerama }:

let version = "2.20110530.1"; in
stdenv.mkDerivation {
  name = "xdotool-${version}";
  src = fetchurl {
    url = "http://semicomplete.googlecode.com/files/xdotool-${version}.tar.gz";
    sha256 = "0rxggg1cy7nnkwidx8x2w3c5f3pk6dh2b6q0q7hp069r3n5jrd77";
  };

  buildInputs = [ libX11 perl libXtst xextproto libXi libXinerama ];

  configurePhase = ''
    export makeFlags="PREFIX=$out";
  '';

  meta = {
    homepage = http://www.semicomplete.com/projects/xdotool/;
    description = "Fake keyboard/mouse input, window management, and more";
    license = "BSD";
    maintainers = with stdenv.lib.maintainers; [viric];
    platforms = with stdenv.lib.platforms; linux;
  };
}