lol
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "motion";
9 version = "1.2.0";
10
11 src = fetchFromGitHub {
12 owner = "fatih";
13 repo = "motion";
14 rev = "v${version}";
15 sha256 = "sha256-7vkMhjO4JUAf0sUcKiMjqJ5GzLb//QoHd7Cagerx4/s=";
16 };
17
18 vendorHash = null;
19
20 ldflags = [
21 "-s"
22 "-w"
23 ];
24
25 meta = with lib; {
26 description = "Navigation and insight in Go";
27 mainProgram = "motion";
28 longDescription = ''
29 Motion is a tool that was designed to work with editors. It is providing
30 contextual information for a given offset(option) from a file or
31 directory of files. Editors can use these informations to implement
32 navigation, text editing, etc... that are specific to a Go source code.
33
34 It's optimized and created to work with vim-go, but it's designed to work
35 with any editor. It's currently work in progress and open to change.
36 '';
37 homepage = "https://github.com/fatih/motion";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ kalbasit ];
40 platforms = platforms.linux ++ platforms.darwin;
41 };
42}