mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 20:33:21 +00:00
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "motion";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fatih";
|
|
repo = "motion";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-bD6Mm9/LOzguoK/xMpVEeT7G8j1shCsMv14wFostlW4=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
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;
|
|
};
|
|
}
|