2011-01-30 16:11:36 +00:00
|
|
|
{ fetchurl, stdenv, libX11, xproto, libXext, xextproto, libXtst
|
|
|
|
, gtk, libXi, inputproto, pkgconfig, recordproto, texinfo }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-04-09 21:52:00 +01:00
|
|
|
name = "xnee-3.12";
|
2011-01-30 16:11:36 +00:00
|
|
|
|
2008-08-14 10:25:26 +01:00
|
|
|
src = fetchurl {
|
2011-01-30 16:11:36 +00:00
|
|
|
url = "mirror://gnu/xnee/${name}.tar.gz";
|
2012-04-09 21:52:00 +01:00
|
|
|
sha256 = "10vxn0in0l2jir6x90grx5jc64x63l3b0f8liladdbplc8za8zmw";
|
2008-08-14 10:25:26 +01:00
|
|
|
};
|
|
|
|
|
2011-01-30 16:11:36 +00:00
|
|
|
patchPhase =
|
|
|
|
'' for i in `find cnee/test -name \*.sh`
|
|
|
|
do
|
2011-08-22 18:38:53 +01:00
|
|
|
sed -i "$i" -e's|/bin/bash|/bin/sh|g ; s|/usr/bin/env bash|/bin/sh|g'
|
2011-01-30 16:11:36 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ libX11 xproto libXext xextproto libXtst gtk
|
|
|
|
libXi inputproto pkgconfig recordproto
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
# Do a static build because `libxnee' doesn't get installed anyway.
|
2011-08-22 18:38:53 +01:00
|
|
|
[ "--disable-gnome-applet" "--enable-static" ];
|
2011-01-30 16:11:36 +00:00
|
|
|
|
|
|
|
# `cnee' is linked without `-lXi' and as a consequence has a RUNPATH that
|
|
|
|
# lacks libXi.
|
|
|
|
makeFlags = "LDFLAGS=-lXi";
|
|
|
|
|
|
|
|
# XXX: Actually tests require an X server.
|
|
|
|
doCheck = true;
|
2008-08-14 10:25:26 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-01-30 16:11:36 +00:00
|
|
|
description = "GNU Xnee, an X11 event recording and replay tool";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' Xnee is a suite of programs that can record, replay and distribute
|
|
|
|
user actions under the X11 environment. Think of it as a robot that
|
|
|
|
can imitate the job you just did. Xnee can be used to automate
|
|
|
|
tests, demonstrate programs, distribute actions, record & replay
|
|
|
|
"macros", retype a file.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv3+";
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/xnee/;
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
2008-08-14 10:25:26 +01:00
|
|
|
};
|
|
|
|
}
|