Merge pull request #21709 from nhooyr/fzf-man

fzf: install manpage
This commit is contained in:
Michael Raskin 2017-01-06 11:31:36 +00:00 committed by GitHub
commit 39b84bb803

View File

@ -14,6 +14,8 @@ buildGoPackage rec {
sha256 = "0r099mk9r6f52qqhx0ifb1xa8f2isqvyza80z9mcpi5zkd96174l";
};
outputs = [ "bin" "out" "man" ];
buildInputs = [ ncurses ];
goDeps = ./deps.nix;
@ -25,6 +27,8 @@ buildGoPackage rec {
postInstall = ''
cp $src/bin/fzf-tmux $bin/bin
mkdir -p $man/share/man
cp -r $src/man/man1 $man/share/man
mkdir -p $out/share/vim-plugins
ln -s $out/share/go/src/github.com/junegunn/fzf $out/share/vim-plugins/${name}
'';