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 changed files with 2 additions and 3 deletions
|
@ -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 "$@"
|
||||
'');
|
||||
|
|
Loading…
Reference in a new issue