fzf: minor code tweaks (#208323)

Suggested by zowoq in #207078.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2022-12-30 02:36:17 -06:00 committed by GitHub
parent 99195d6c05
commit e74582c9ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 "$@"
'');