Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions pkgs/development/tools/go-motion/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "motion-unstable-${version}";
version = "2018-04-09";
rev = "218875ebe23806e7af82f3b5b14bb3355534f679";

goPackagePath = "github.com/fatih/motion";
excludedPackages = ''testdata'';

src = fetchFromGitHub {
inherit rev;

owner = "fatih";
repo = "motion";
sha256 = "08lp61hmb77p0cknf71jp8lssplxad3ddyqjxh8x3cr0bmn9ykr9";
};

meta = with lib; {
description = "Navigation and insight in Go";
longDescription = ''
Motion is a tool that was designed to work with editors. It is providing
contextual information for a given offset(option) from a file or
directory of files. Editors can use these informations to implement
navigation, text editing, etc... that are specific to a Go source code.

It's optimized and created to work with vim-go, but it's designed to work
with any editor. It's currently work in progress and open to change.
'';
homepage = https://github.com/fatih/motion;
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
4 changes: 2 additions & 2 deletions pkgs/misc/vim-plugins/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# vim-go denpencies
, asmfmt, delve, errcheck, godef, golint
, gomodifytags, gotags, gotools, motion
, gomodifytags, gotags, gotools, go-motion
, gnused, reftools, gogetdoc, gometalinter
, impl, iferr, gocode, gocode-gomod, go-tools
}:
Expand Down Expand Up @@ -265,6 +265,7 @@ with generated;
asmfmt
delve
errcheck
go-motion
go-tools
gocode
gocode-gomod
Expand All @@ -277,7 +278,6 @@ with generated;
gotools
iferr
impl
motion
reftools
];
in {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16629,6 +16629,8 @@ with pkgs;

exercism = callPackage ../applications/misc/exercism { };

go-motion = callPackage ../development/tools/go-motion { };

gpg-mdp = callPackage ../applications/misc/gpg-mdp { };

icesl = callPackage ../applications/misc/icesl { };
Expand Down