From 50b1ca6dcc5685bc556d4161d4d785f07c4a54d6 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sat, 12 Sep 2015 12:12:57 +0200 Subject: [PATCH] xdotool: 2.20110530.1 -> 3.20150503.1 --- nixos/tests/chromium.nix | 6 ++++++ pkgs/tools/X11/xdotool/default.nix | 17 ++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/nixos/tests/chromium.nix b/nixos/tests/chromium.nix index 3624131b364e..213dd4ca43b3 100644 --- a/nixos/tests/chromium.nix +++ b/nixos/tests/chromium.nix @@ -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 ''}"); diff --git a/pkgs/tools/X11/xdotool/default.nix b/pkgs/tools/X11/xdotool/default.nix index 2eeb61dfaf4c..4c675a69842c 100644 --- a/pkgs/tools/X11/xdotool/default.nix +++ b/pkgs/tools/X11/xdotool/default.nix @@ -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/;