fzf: Make sure that perl path is valid

This commit is contained in:
Silvan Mosberger 2020-08-21 22:30:27 +02:00
parent cf7a15a482
commit 7ff5fd2e91
No known key found for this signature in database
GPG Key ID: E8F1E9EAD284E17D

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, writeText, runtimeShell, ncurses }: { lib, buildGoModule, fetchFromGitHub, writeText, runtimeShell, ncurses, perl }:
buildGoModule rec { buildGoModule rec {
pname = "fzf"; pname = "fzf";
@ -27,6 +27,13 @@ buildGoModule rec {
echo "Failed to replace vim base_dir path with $out" echo "Failed to replace vim base_dir path with $out"
exit 1 exit 1
fi fi
# Has a sneaky dependency on perl
# Include first args to make sure we're patching the right thing
substituteInPlace shell/key-bindings.zsh \
--replace " perl -ne " " ${perl}/bin/perl -ne "
substituteInPlace shell/key-bindings.bash \
--replace " perl -n " " ${perl}/bin/perl -n "
''; '';
preInstall = '' preInstall = ''