16 stdenv.mkDerivation (finalAttrs: {
21 url = "mirror://gnu/xnee/xnee-${finalAttrs.version}.tar.gz";
22 hash = "sha256-UqQeXPYvgbej5bWBJOs1ZeHhICir2mP1R/u+DZiiwhI=";
26 # Pull fix pending upstream inclusion for -fno-common
27 # toolchain support: https://savannah.gnu.org/bugs/?58810
29 name = "fno-common.patch";
30 url = "https://savannah.gnu.org/bugs/download.php?file_id=49534";
31 hash = "sha256-Ar5SyVIEp8/knDHm+4f0KWAH+A5gGhXGezEqL7xkQhI=";
36 for i in `find cnee/test -name \*.sh`; do
37 sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g ; s|/usr/bin/env bash|${stdenv.shell}|g'
40 # Fix for glibc-2.34. For some reason, `LIBSEMA="CCC"` is added
41 # if `sem_init` is part of libc which causes errors like
42 # `gcc: error: CCC: No such file or directory` during the build.
44 substituteInPlace configure* \
45 --replace 'LIBSEMA="CCC"' 'LIBSEMA=""'
66 "--disable-gnome-applet"
67 # Do a static build because `libxnee' doesn't get installed anyway.
72 # `cnee' is linked without `-lXi' and as a consequence has a RUNPATH that
77 # error: call to undeclared function 'xnee_check_key';
78 # ISO C99 and later do not support implicit function declarations
79 env = lib.optionalAttrs stdenv.cc.isClang {
80 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
83 # XXX: Actually tests require an X server.
87 description = "X11 event recording and replay tool";
89 Xnee is a suite of programs that can record, replay and distribute
90 user actions under the X11 environment. Think of it as a robot that
91 can imitate the job you just did. Xnee can be used to automate
92 tests, demonstrate programs, distribute actions, record & replay
93 "macros", retype a file.
95 homepage = "https://www.gnu.org/software/xnee/";
96 license = lib.licenses.gpl3Plus;
97 maintainers = with lib.maintainers; [ wegank ];
98 platforms = lib.platforms.unix;