Skip to content

Commit

Permalink
vim-plugins: vim-go: provide the binaries required for the plugin to …
Browse files Browse the repository at this point in the history
…be functional
  • Loading branch information
kalbasit committed Nov 3, 2018
1 parent e2355c6 commit e09e529
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/misc/vim-plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
, languagetool
, Cocoa, CoreFoundation, CoreServices
, buildVimPluginFrom2Nix

# vim-go denpencies
, asmfmt, delve, errcheck, godef, golint
, gomodifytags, gotags, gotools, motion
, gnused, reftools, gogetdoc, gometalinter
, impl, iferr
}:

let
Expand Down Expand Up @@ -247,6 +253,34 @@ with generated;
dependencies = ["vim-misc"];
});

# change the go_bin_path to point to a path in the nix store. See the code in
# fatih/vim-go here
# https://github.com/fatih/vim-go/blob/155836d47052ea9c9bac81ba3e937f6f22c8e384/autoload/go/path.vim#L154-L159
vim-go = vim-go.overrideAttrs(old: let
binPath = lib.makeBinPath [
asmfmt
delve
errcheck
godef
gogetdoc
golint
gometalinter
gomodifytags
gotags
gotools
iferr
impl
motion

This comment has been minimized.

Copy link
@Mic92

This comment has been minimized.

Copy link
@Mic92

Mic92 Nov 14, 2018

Probably it should have been this project instead: https://github.com/fatih/motion

This comment has been minimized.

Copy link
@kalbasit

kalbasit Nov 14, 2018

Author Owner

oh right, sorry about that. I’ll submit a pr to fix it later today.

This comment has been minimized.

Copy link
@kalbasit

kalbasit Nov 15, 2018

Author Owner

@Mic92 I filed NixOS#50381 to fix the issue.

This comment has been minimized.

Copy link
@Mic92

Mic92 Nov 15, 2018

thanks!

reftools
];
in {
postPatch = ''
${gnused}/bin/sed \
-Ee 's@let go_bin_path = go#path#BinPath\(\)@let go_bin_path = "${binPath}"@g' \
-i autoload/go/path.vim
'';
});

vim-grammarous = vim-grammarous.overrideAttrs(old: {
# use `:GrammarousCheck` to initialize checking
# In neovim, you also want to use set
Expand Down

0 comments on commit e09e529

Please sign in to comment.