mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
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;
|
||||
|
||||
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/fzf-tmux'|'$bin/bin/fzf-tmux'|" plugin/fzf.vim
|
||||
sed -i -e "s|expand('<sfile>:h:h')|'$bin'|" 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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user