xdotool: 2.20110530.1 -> 3.20150503.1

This commit is contained in:
Gabriel Ebner 2015-09-12 12:12:57 +02:00
parent 09a08ef164
commit 50b1ca6dcc
2 changed files with 14 additions and 9 deletions

View File

@ -44,6 +44,8 @@ import ./make-test.nix (
search --onlyvisible --name "startup done"
windowfocus --sync
windowactivate --sync
''}");
$machine->execute("${xdo "new-window" ''
key Ctrl+n
''}");
});
@ -55,6 +57,8 @@ import ./make-test.nix (
search --onlyvisible --name "new tab"
windowfocus --sync
windowactivate --sync
''}");
$machine->execute("${xdo "close-window" ''
key Ctrl+w
''}");
for (1..20) {
@ -155,6 +159,8 @@ import ./make-test.nix (
$machine->succeed("${xdo "submit-url" ''
search --sync --onlyvisible --name "sandbox status"
windowfocus --sync
''}");
$machine->succeed("${xdo "submit-url" ''
key --delay 1000 Ctrl+a Ctrl+c
''}");

View File

@ -1,18 +1,17 @@
{ stdenv, fetchurl, libX11, perl, libXtst, xextproto, libXi, libXinerama }:
{ stdenv, fetchurl, pkgconfig, libX11, perl, libXtst, xextproto, libXi, libXinerama, libxkbcommon }:
let version = "2.20110530.1"; in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
name = "xdotool-${version}";
version = "3.20150503.1";
src = fetchurl {
url = "http://semicomplete.googlecode.com/files/xdotool-${version}.tar.gz";
sha256 = "0rxggg1cy7nnkwidx8x2w3c5f3pk6dh2b6q0q7hp069r3n5jrd77";
url = "https://github.com/jordansissel/xdotool/releases/download/v${version}/xdotool-${version}.tar.gz";
sha256 = "1lcngsw33fy9my21rdiz1gs474bfdqcfxjrnfggbx4aypn1nhcp8";
};
buildInputs = [ libX11 perl libXtst xextproto libXi libXinerama ];
nativeBuildInputs = [ pkgconfig perl ];
buildInputs = [ libX11 libXtst xextproto libXi libXinerama libxkbcommon ];
configurePhase = ''
export makeFlags="PREFIX=$out";
'';
makeFlags = "PREFIX=$(out)";
meta = {
homepage = http://www.semicomplete.com/projects/xdotool/;