From cf1ef7cc67935e6842186013014eb864ea60003c Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Tue, 17 May 2016 01:47:23 +0200 Subject: goPackages.fzf: move vim plugin to a place where it can be found --- pkgs/top-level/go-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkgs/top-level') diff --git a/pkgs/top-level/go-packages.nix b/pkgs/top-level/go-packages.nix index 68941350114..abf6f62fc8e 100644 --- a/pkgs/top-level/go-packages.nix +++ b/pkgs/top-level/go-packages.nix @@ -913,8 +913,15 @@ let crypto ginkgo gomega junegunn.go-runewidth go-shellwords pkgs.ncurses text ]; + patchPhase = '' + sed -i -e "s|expand(':h:h').'/bin/fzf'|'$bin/bin/fzf'|" plugin/fzf.vim + sed -i -e "s|expand(':h:h').'/bin/fzf-tmux'|'$bin/bin/fzf-tmux'|" plugin/fzf.vim + ''; + postInstall= '' 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} ''; }; -- cgit 1.4.1