Merge pull request #230846 from wegank/perl-darwin-misc

perlPackages.TextWrapI18N: don't use glibc on darwin
This commit is contained in:
toonn 2023-05-10 16:24:15 +02:00 committed by GitHub
commit a1386a8f2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25878,10 +25878,10 @@ with self; {
url = "mirror://cpan/authors/id/K/KU/KUBOTA/Text-WrapI18N-0.06.tar.gz";
hash = "sha256-S9KaF/DCx5LRLBAFs8J28qsPrjnACFmuF0HXlBhGpIg=";
};
buildInputs = [ pkgs.glibcLocales ];
buildInputs = lib.optionals (!stdenv.isDarwin) [ pkgs.glibcLocales ];
propagatedBuildInputs = [ TextCharWidth ];
preConfigure = ''
substituteInPlace WrapI18N.pm --replace '/usr/bin/locale' '${pkgs.glibc.bin}/bin/locale'
substituteInPlace WrapI18N.pm --replace '/usr/bin/locale' '${if stdenv.isDarwin then pkgs.darwin.adv_cmds else pkgs.glibc.bin}/bin/locale'
'';
meta = {
description = "Line wrapping module with support for multibyte, fullwidth, and combining characters and languages without whitespaces between words";