From e74582c9ffeabe2284a95938463c40286ff2cc2c Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Fri, 30 Dec 2022 02:36:17 -0600 Subject: [PATCH] fzf: minor code tweaks (#208323) Suggested by zowoq in #207078. Signed-off-by: Austin Seipp --- pkgs/tools/misc/fzf/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/fzf/default.nix b/pkgs/tools/misc/fzf/default.nix index bf1884d311ee..16d9aab423aa 100644 --- a/pkgs/tools/misc/fzf/default.nix +++ b/pkgs/tools/misc/fzf/default.nix @@ -1,9 +1,9 @@ { stdenv , lib -, pkgs , buildGoModule , fetchFromGitHub , writeText +, writeShellScriptBin , runtimeShell , installShellFiles , ncurses @@ -16,8 +16,7 @@ let # 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 ( - pkgs.writers.writeBashBin "perl" '' - #!${pkgs.runtimeShell} + writeShellScriptBin "perl" '' export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive" exec ${perl}/bin/perl "$@" '');