Merge pull request #40136 from sh4r3m4n/fzf-fix
fzf: fix vim plugin patch phase
This commit is contained in:
commit
06ef2ec029
@ -23,8 +23,13 @@ buildGoPackage rec {
|
|||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
sed -i -e "s|expand('<sfile>:h:h').'/bin/fzf'|'$bin/bin/fzf'|" plugin/fzf.vim
|
sed -i -e "s|expand('<sfile>:h:h')|'$bin'|" plugin/fzf.vim
|
||||||
sed -i -e "s|expand('<sfile>:h:h').'/bin/fzf-tmux'|'$bin/bin/fzf-tmux'|" plugin/fzf.vim
|
|
||||||
|
# Original and output files can't be the same
|
||||||
|
if cmp -s $src/plugin/fzf.vim plugin/fzf.vim; then
|
||||||
|
echo "Vim plugin patch not applied properly. Aborting" && \
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preInstall = ''
|
preInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user