goPackages.fzf: move vim plugin to a place where it can be found
This commit is contained in:
parent
3c8bd93f23
commit
cf1ef7cc67
1 changed files with 7 additions and 0 deletions
|
@ -913,8 +913,15 @@ let
|
||||||
crypto ginkgo gomega junegunn.go-runewidth go-shellwords pkgs.ncurses text
|
crypto ginkgo gomega junegunn.go-runewidth go-shellwords pkgs.ncurses text
|
||||||
];
|
];
|
||||||
|
|
||||||
|
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
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall= ''
|
postInstall= ''
|
||||||
cp $src/bin/fzf-tmux $bin/bin
|
cp $src/bin/fzf-tmux $bin/bin
|
||||||
|
mkdir -p $out/share/vim-plugins
|
||||||
|
ln -s $out/share/go/src/github.com/junegunn/fzf $out/share/vim-plugins/${(builtins.parseDrvName fzf.name).name}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue