lol

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

perlPackages.TextWrapI18N: don't use glibc on darwin

authored by

toonn and committed by
GitHub
a1386a8f dfc76445

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