2021-01-15 22:18:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, libX11, xorgproto, libXext, libXtst
|
2021-02-05 17:12:51 +00:00
|
|
|
, gtk2, libXi, pkg-config, texinfo }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.19";
|
|
|
|
pname = "xnee";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/xnee/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "04n2lac0vgpv8zsn7nmb50hf3qb56pmj90dmwnivg09gyrf1x92j";
|
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase =
|
|
|
|
'' for i in `find cnee/test -name \*.sh`
|
|
|
|
do
|
|
|
|
sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g ; s|/usr/bin/env bash|${stdenv.shell}|g'
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ libX11 xorgproto libXext libXtst gtk2
|
2021-02-05 17:12:51 +00:00
|
|
|
libXi pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
# Do a static build because `libxnee' doesn't get installed anyway.
|
|
|
|
[ "--disable-gnome-applet" "--enable-static" ];
|
|
|
|
|
|
|
|
# `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;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "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.
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
homepage = "https://www.gnu.org/software/xnee/";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-01-17 00:15:33 +00:00
|
|
|
platforms = lib.platforms.gnu ++ lib.platforms.linux; # arbitrary choice
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|