From c686d377cd442af81cd0ef9ef9d836eb744caf32 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 13 Nov 2026 14:52:35 +0100 Subject: [PATCH] rxvt-unicode: fix themed cursors on Linux urxvt and urxvtd fall back to the fixed-size X cursor font even when an Xcursor theme and size are configured. Xlib dynamically loads libXcursor, which is not available in their runtime library search path by default. Related issue: https://github.com/NixOS/nixpkgs/issues/24137 --- pkgs/by-name/rx/rxvt-unicode/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/rx/rxvt-unicode/package.nix b/pkgs/by-name/rx/rxvt-unicode/package.nix index a05561ad975a..8fb2360aaf59 100644 --- a/pkgs/by-name/rx/rxvt-unicode/package.nix +++ b/pkgs/by-name/rx/rxvt-unicode/package.nix @@ -5,6 +5,7 @@ rxvt-unicode-unwrapped, rxvt-unicode-plugins, perlPackages, + libxcursor, nixosTests, configure ? { availablePlugins, ... }: @@ -52,11 +53,15 @@ let nativeBuildInputs = [ makeWrapper ]; postBuild = '' + # Xlib dlopens libXcursor for themed cursors, but cannot find it without + # an explicit runtime dependency. Both standalone and daemon mode need it. wrapProgram $out/bin/urxvt \ --prefix PERL5LIB : "${perlPackages.makePerlPath perlDeps}" \ + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libxcursor ]}" \ --suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl" wrapProgram $out/bin/urxvtd \ --prefix PERL5LIB : "${perlPackages.makePerlPath perlDeps}" \ + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libxcursor ]}" \ --suffix-each URXVT_PERL_LIB ':' "$out/lib/urxvt/perl" '';