2011-01-30 17:11:36 +01:00
|
|
|
{ fetchurl, stdenv, libX11, xproto, libXext, xextproto, libXtst
|
2016-09-11 23:24:51 +02:00
|
|
|
, gtk2, libXi, inputproto, pkgconfig, recordproto, texinfo }:
|
2011-01-30 17:11:36 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-08-27 15:55:26 +02:00
|
|
|
version = "3.19";
|
|
|
|
name = "xnee-${version}";
|
2011-01-30 17:11:36 +01:00
|
|
|
|
2008-08-14 11:25:26 +02:00
|
|
|
src = fetchurl {
|
2011-01-30 17:11:36 +01:00
|
|
|
url = "mirror://gnu/xnee/${name}.tar.gz";
|
2014-08-27 15:55:26 +02:00
|
|
|
sha256 = "04n2lac0vgpv8zsn7nmb50hf3qb56pmj90dmwnivg09gyrf1x92j";
|
2008-08-14 11:25:26 +02:00
|
|
|
};
|
|
|
|
|
2011-01-30 17:11:36 +01:00
|
|
|
patchPhase =
|
|
|
|
'' for i in `find cnee/test -name \*.sh`
|
|
|
|
do
|
2011-08-22 19:38:53 +02:00
|
|
|
sed -i "$i" -e's|/bin/bash|/bin/sh|g ; s|/usr/bin/env bash|/bin/sh|g'
|
2011-01-30 17:11:36 +01:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
2016-09-11 23:24:51 +02:00
|
|
|
[ libX11 xproto libXext xextproto libXtst gtk2
|
2011-01-30 17:11:36 +01:00
|
|
|
libXi inputproto pkgconfig recordproto
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
# Do a static build because `libxnee' doesn't get installed anyway.
|
2011-08-22 19:38:53 +02:00
|
|
|
[ "--disable-gnome-applet" "--enable-static" ];
|
2011-01-30 17:11:36 +01: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 11:25:26 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "X11 event recording and replay tool";
|
2011-01-30 17:11:36 +01:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-01-30 17:11:36 +01:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/xnee/;
|
|
|
|
|
2014-08-27 15:55:26 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2018-05-01 00:47:47 +02:00
|
|
|
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice
|
2008-08-14 11:25:26 +02:00
|
|
|
};
|
|
|
|
}
|