fzf: minor code tweaks (#208323)
Suggested by zowoq in #207078. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
99195d6c05
commit
e74582c9ff
|
@ -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 "$@"
|
||||||
'');
|
'');
|
||||||
|
|
Loading…
Reference in a new issue