Merge pull request #232289 from wegank/perl-darwin-misc-2

perlPackages.TextWrapI18N: use unixtools.locale
This commit is contained in:
Weijia Wang
2023-05-17 19:06:24 +03:00
committed by GitHub
+1 -1
View File
@@ -25881,7 +25881,7 @@ with self; {
buildInputs = lib.optionals (!stdenv.isDarwin) [ pkgs.glibcLocales ];
propagatedBuildInputs = [ TextCharWidth ];
preConfigure = ''
substituteInPlace WrapI18N.pm --replace '/usr/bin/locale' '${if stdenv.isDarwin then pkgs.darwin.adv_cmds else pkgs.glibc.bin}/bin/locale'
substituteInPlace WrapI18N.pm --replace '/usr/bin/locale' '${pkgs.unixtools.locale}/bin/locale'
'';
meta = {
description = "Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words";