3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #273188 from SuperSandro2000/fzf-perl-locale

fzf: reduce closure size by just quieten perl instead of providing gl…
This commit is contained in:
Maximilian Bosch 2023-12-15 12:20:15 +01:00 committed by GitHub
commit c9e01dafc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,6 @@
, bc
, ncurses
, perl
, glibcLocales
, testers
, fzf
}:
@ -19,7 +18,7 @@ let
# warnings on non-nixos machines
ourPerl = if !stdenv.isLinux then perl else (
writeShellScriptBin "perl" ''
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
export PERL_BADLANG=0
exec ${perl}/bin/perl "$@"
'');
in