From d01e46db3c45c72cdda1572ee2037fd0fb2898a6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 17 Jan 2023 19:19:49 +0000 Subject: [PATCH] fzf: only wrap perl on Linux As the comment says, this should only have happened on Linux, not all non-Darwin platforms. Fixes pkgsCross.x86_64-netbsd.fzf. Fixes: 1693ed2be9e ("fzf: wrap 'perl' in scripts with LOCALE_ARCHIVE") --- pkgs/tools/misc/fzf/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "$@"