18 stdenv.mkDerivation (finalAttrs: {
23 url = "mirror://gnu/xnee/xnee-${finalAttrs.version}.tar.gz";
24 hash = "sha256-UqQeXPYvgbej5bWBJOs1ZeHhICir2mP1R/u+DZiiwhI=";
28 # Pull fix pending upstream inclusion for -fno-common
29 # toolchain support: https://savannah.gnu.org/bugs/?58810
31 name = "fno-common.patch";
32 url = "https://savannah.gnu.org/bugs/download.php?file_id=49534";
33 hash = "sha256-Ar5SyVIEp8/knDHm+4f0KWAH+A5gGhXGezEqL7xkQhI=";
36 inherit (finalAttrs) pname version;
37 debianRevision = "9.2";
38 patch = "fix-implicit-declarations.patch";
39 hash = "sha256-ct/ATuiC6b7rw9n2wsRNKvfj02i7V20bMOzL7pKDd0A=";
45 for i in `find cnee/test -name \*.sh`; do
46 sed -i "$i" -e's|/bin/bash|${stdenv.shell}|g ; s|/usr/bin/env bash|${stdenv.shell}|g'
49 # Fix for glibc-2.34. For some reason, `LIBSEMA="CCC"` is added
50 # if `sem_init` is part of libc which causes errors like
51 # `gcc: error: CCC: No such file or directory` during the build.
53 substituteInPlace configure* \
54 --replace 'LIBSEMA="CCC"' 'LIBSEMA=""'
75 "--disable-gnome-applet"
76 # Do a static build because `libxnee' doesn't get installed anyway.
81 # `cnee' is linked without `-lXi' and as a consequence has a RUNPATH that
86 # error: call to undeclared function 'xnee_check_key';
87 # ISO C99 and later do not support implicit function declarations
88 env = lib.optionalAttrs stdenv.cc.isClang {
89 NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
92 # XXX: Actually tests require an X server.
96 description = "X11 event recording and replay tool";
98 Xnee is a suite of programs that can record, replay and distribute
99 user actions under the X11 environment. Think of it as a robot that
100 can imitate the job you just did. Xnee can be used to automate
101 tests, demonstrate programs, distribute actions, record & replay
102 "macros", retype a file.
104 homepage = "https://www.gnu.org/software/xnee/";
105 license = lib.licenses.gpl3Plus;
106 maintainers = with lib.maintainers; [ wegank ];
107 platforms = lib.platforms.unix;