Merge pull request #95930 from Infinisil/fzf-perl

fzf: Make sure that perl path is valid
This commit is contained in:
Maximilian Bosch 2020-08-22 01:26:31 +02:00 committed by GitHub
commit 8642072014
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, writeText, runtimeShell, ncurses }:
{ lib, buildGoModule, fetchFromGitHub, writeText, runtimeShell, ncurses, perl }:
buildGoModule rec {
pname = "fzf";
@ -27,6 +27,13 @@ buildGoModule rec {
echo "Failed to replace vim base_dir path with $out"
exit 1
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 = ''