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 { stdenv
, lib , lib
, pkgs
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, writeText , writeText
, writeShellScriptBin
, runtimeShell , runtimeShell
, installShellFiles , installShellFiles
, ncurses , ncurses
@ -16,8 +16,7 @@ let
# so that using the shell completion (ctrl+r, etc) doesn't result in ugly # so that using the shell completion (ctrl+r, etc) doesn't result in ugly
# warnings on non-nixos machines # warnings on non-nixos machines
ourPerl = if stdenv.isDarwin then perl else ( ourPerl = if stdenv.isDarwin then perl else (
pkgs.writers.writeBashBin "perl" '' writeShellScriptBin "perl" ''
#!${pkgs.runtimeShell}
export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive" export LOCALE_ARCHIVE="${glibcLocales}/lib/locale/locale-archive"
exec ${perl}/bin/perl "$@" exec ${perl}/bin/perl "$@"
''); '');