Merge pull request #249167 from arcnmx/perl538-fallout-weechat

weechat: perl 5.38 locale issues
This commit is contained in:
Naïm Favier 2023-08-21 22:37:55 +02:00 committed by GitHub
commit 6831a6e5cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, lib
{ stdenv, fetchurl, fetchpatch, lib
, ncurses, openssl, aspell, gnutls, gettext
, zlib, curl, pkg-config, libgcrypt
, cmake, libobjc, libresolv, libiconv
@ -46,6 +46,13 @@ let
hash = "sha256-iA29zo5zs/SAKggsShp8YZQ9vFhn16lWleTkY8ZTWpI=";
};
patches = lib.optional (perlSupport && lib.versionAtLeast perl.version "5.38") (fetchpatch {
name = "perl538-locale.patch";
url = "https://github.com/weechat/weechat/commit/c5eb982424150894959b978d98dcf6a005eb6c9f.patch";
excludes = [ "ChangeLog.adoc" ];
sha256 = "sha256-SSDZy4/c12LOxjvFMuJSv6gJEX298wF62/gQLQ/geiU=";
});
outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins;
cmakeFlags = with lib; [