git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #50381 from kalbasit/nixpkgs_vim-go-use-go-motion

vimPlugins.vim-go: use the correct motion derivation for the dependency

commit9afa6f74e59af09bc47bf69217d72b9999bccdd7 authorJörg Thalheim <Mic92@users.noreply.github.com> dateThu 15 Nov 2018, 11:14 (8 years ago) parentf73afe609cd6ff
3 files changed+42−2
pkgs/development/tools/go-motion/default.nix+38 pkgs/misc/vim-plugins/overrides.nix+2−2 pkgs/top-level/all-packages.nix+2
pkgs/development/tools/go-motion/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ buildGoPackage
2+, lib
3+, fetchFromGitHub
4+}:
5+
6+buildGoPackage rec {
7+ name = "motion-unstable-${version}";
8+ version = "2018-04-09";
9+ rev = "218875ebe23806e7af82f3b5b14bb3355534f679";
10+
11+ goPackagePath = "github.com/fatih/motion";
12+ excludedPackages = ''testdata'';
13+
14+ src = fetchFromGitHub {
15+ inherit rev;
16+
17+ owner = "fatih";
18+ repo = "motion";
19+ sha256 = "08lp61hmb77p0cknf71jp8lssplxad3ddyqjxh8x3cr0bmn9ykr9";
20+ };
21+
22+ meta = with lib; {
23+ description = "Navigation and insight in Go";
24+ longDescription = ''
25+ Motion is a tool that was designed to work with editors. It is providing
26+ contextual information for a given offset(option) from a file or
27+ directory of files. Editors can use these informations to implement
28+ navigation, text editing, etc... that are specific to a Go source code.
29+
30+ It's optimized and created to work with vim-go, but it's designed to work
31+ with any editor. It's currently work in progress and open to change.
32+ '';
33+ homepage = https://github.com/fatih/motion;
34+ license = licenses.bsd3;
35+ maintainers = with maintainers; [ kalbasit ];
36+ platforms = platforms.linux ++ platforms.darwin;
37+ };
38+}
pkgs/misc/vim-plugins/overrides.nix+2−2
@@ -12,7 +12,7 @@
1212
1313# vim-go denpencies
1414, asmfmt, delve, errcheck, godef, golint
15−, gomodifytags, gotags, gotools, motion
15+, gomodifytags, gotags, gotools, go-motion
1616, gnused, reftools, gogetdoc, gometalinter
1717, impl, iferr, gocode, gocode-gomod, go-tools
1818}:
@@ -265,6 +265,7 @@ with generated;
265265 asmfmt
266266 delve
267267 errcheck
268+ go-motion
268269 go-tools
269270 gocode
270271 gocode-gomod
@@ -277,7 +278,6 @@ with generated;
277278 gotools
278279 iferr
279280 impl
280− motion
281281 reftools
282282 ];
283283 in {
pkgs/top-level/all-packages.nix+2
@@ -16631,6 +16631,8 @@ with pkgs;
1663116631
1663216632 exercism = callPackage ../applications/misc/exercism { };
1663316633
16634+ go-motion = callPackage ../development/tools/go-motion { };
16635+
1663416636 gpg-mdp = callPackage ../applications/misc/gpg-mdp { };
1663516637
1663616638 icesl = callPackage ../applications/misc/icesl { };