fzf: fix invalid symlink on vim-plugins

The fzf vim plugin wasn't working because it was making a symlink to a
directory with the full source code. This directory isn't present
anymore since the commit e95f17e272 wich
removes it because it isn't so useful for the go packages.

I fixed it by manually copying the plugin/ directory into the out
derivation, which is the only part of the source that contains the vim
plugin.
This commit is contained in:
Matías Lang 2018-07-27 12:27:42 -03:00
parent 1d83c4583b
commit fcb4e32e9a

View File

@ -42,8 +42,8 @@ buildGoPackage rec {
cp $src/bin/fzf-tmux $bin/bin cp $src/bin/fzf-tmux $bin/bin
mkdir -p $man/share/man mkdir -p $man/share/man
cp -r $src/man/man1 $man/share/man cp -r $src/man/man1 $man/share/man
mkdir -p $out/share/vim-plugins mkdir -p $out/share/vim-plugins/${name}
ln -s $out/share/go/src/github.com/junegunn/fzf $out/share/vim-plugins/${name} cp -r $src/plugin $out/share/vim-plugins/${name}
cp -R $src/shell $bin/share/fzf cp -R $src/shell $bin/share/fzf
cat <<SCRIPT > $bin/bin/fzf-share cat <<SCRIPT > $bin/bin/fzf-share