Skip to content

Commit

Permalink
Merge pull request NixOS#230846 from wegank/perl-darwin-misc
Browse files Browse the repository at this point in the history
perlPackages.TextWrapI18N: don't use glibc on darwin
  • Loading branch information
toonn authored May 10, 2023
2 parents dfc7644 + eca937f commit a1386a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/top-level/perl-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a1386a8

Please sign in to comment.