diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index 7f909b490daa..6a29151a5178 100644 --- a/pkgs/tools/misc/fzf/default.nix +++ b/pkgs/tools/misc/fzf/default.nix @@ -17,7 +17,7 @@ let # on Linux, wrap perl in the bash completion scripts with the glibc locales, # so that using the shell completion (ctrl+r, etc) doesn't result in ugly # warnings on non-nixos machines - ourPerl = if stdenv.isDarwin then perl else ( + ourPerl = if !stdenv.isLinux then perl else ( writeShellScriptBin "perl" '' export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive" exec ${perl}/bin/perl "$@"