vimPlugins.coc-go: Ensure dependencies are available

This commit is contained in:
Roman Volosatovs 2019-07-08 21:08:54 +02:00
parent f597e3eeaa
commit 1b18ef6728
No known key found for this signature in database
GPG key ID: 2660C5FDCEBE6F87

View file

@ -11,13 +11,16 @@
, Cocoa, CoreFoundation, CoreServices
, buildVimPluginFrom2Nix
# coc-go dependency
, go
# vim-go denpencies
, asmfmt, delve, errcheck, godef, golint
, gomodifytags, gotags, gotools, go-motion
, gnused, reftools, gogetdoc, gometalinter
, impl, iferr, gocode, gocode-gomod, go-tools
# vCoolor dep
# vCoolor dependency
, gnome3
}:
@ -109,6 +112,12 @@ self: super: {
'';
});
coc-go = super.coc-go.overrideAttrs(old: {
preFixup = ''
substituteInPlace "$out"/share/vim-plugins/coc-go/src/utils/tools.ts \
--replace 'const cmd = `GOPATH=''${gopath}; go ''${args}`' 'const cmd = `GOPATH=''${gopath}; ${go}/bin/go ''${args}`'
'';
});
coc-nvim = let
version = "0.0.72";