From 4a49e797081d4505018f0500367b51e3dc407ee2 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Mon, 14 Aug 2023 10:29:43 -0700 Subject: [PATCH] rxvt-unicode: patch to support perl 5.38 This fixes character encoding and rendering issues with non-ascii characters after the recent perl update. The urxvt patch notes state: > perl 5.38 does not handle empty locale names, use "C" instead --- .../terminal-emulators/rxvt-unicode/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/terminal-emulators/rxvt-unicode/default.nix b/pkgs/applications/terminal-emulators/rxvt-unicode/default.nix index 47cd84d94825..e932fcdea05f 100644 --- a/pkgs/applications/terminal-emulators/rxvt-unicode/default.nix +++ b/pkgs/applications/terminal-emulators/rxvt-unicode/default.nix @@ -73,7 +73,12 @@ stdenv.mkDerivation { ./patches/9.06-font-width.patch ]) ++ [ ./patches/256-color-resources.patch - ]++ optional stdenv.isDarwin ./patches/makefile-phony.patch; + ] ++ optional (perlSupport && versionAtLeast perl.version "5.38") (fetchpatch { + name = "perl538-locale-c.patch"; + url = "https://github.com/exg/rxvt-unicode/commit/16634bc8dd5fc4af62faf899687dfa8f27768d15.patch"; + excludes = [ "Changes" ]; + sha256 = "sha256-JVqzYi3tcWIN2j5JByZSztImKqbbbB3lnfAwUXrumHM="; + }) ++ optional stdenv.isDarwin ./patches/makefile-phony.patch; configureFlags = [ "--with-terminfo=${placeholder "terminfo"}/share/terminfo"