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

Provide all the binaries needed by the vim-go plugin #49669

Merged
merged 18 commits into from
Nov 4, 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
37 changes: 37 additions & 0 deletions pkgs/development/tools/asmfmt/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{ buildGoPackage
, lib
, fetchFromGitHub
, fetchpatch
}:

buildGoPackage rec {
name = "asmfmt-${version}";
version = "1.1";

goPackagePath = "github.com/klauspost/asmfmt";

src = fetchFromGitHub {
owner = "klauspost";
repo = "asmfmt";
rev = "v${version}";
sha256 = "08mybfizcvck460axakycz9ndzcgwqilp5mmgm4bl8hfrn36mskw";
};

patches = [
(fetchpatch {
excludes = ["README.md"];
url = "https://github.com/klauspost/asmfmt/commit/39a37c8aed8095e0fdfb07f78fc8acbd465d9627.patch";
sha256 = "18bc77l87mf0yvqc3adlakxz6wflyqfsc2wrmh9q0nlqghlmnw5k";
})
];

goDeps = ./deps.nix;

meta = with lib; {
description = "Go Assembler Formatter";
homepage = https://github.com/klauspost/asmfmt;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
20 changes: 20 additions & 0 deletions pkgs/development/tools/asmfmt/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions pkgs/development/tools/check/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ buildGoPackage
, lib
, fetchFromGitLab
}:

buildGoPackage rec {
name = "check-unstable-${version}";
version = "2018-09-12";
rev = "88db195993f8e991ad402754accd0635490769f9";

goPackagePath = "gitlab.com/opennota/check";

src = fetchFromGitLab {
inherit rev;

owner = "opennota";
repo = "check";
sha256 = "1983xmdkgpqda4qz8ashc6xv1zg5jl4zly3w566grxc5sfxpgf0i";
};

goDeps = ./deps.nix;

meta = with lib; {
description = "A set of utilities for checking Go sources.";
homepage = https://gitlab.com/opennota/check;
license = licenses.gpl3;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
11 changes: 11 additions & 0 deletions pkgs/development/tools/check/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions pkgs/development/tools/deadcode/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

# TODO(yl): should we package https://github.com/remyoudompheng/go-misc instead of
# the standalone extract of deadcode from it?
buildGoPackage rec {
name = "deadcode-unstable-${version}";
version = "2016-07-24";
rev = "210d2dc333e90c7e3eedf4f2242507a8e83ed4ab";

goPackagePath = "github.com/tsenart/deadcode";
excludedPackages = "\\(cmd/fillswitch/test-fixtures\\)";

src = fetchFromGitHub {
inherit rev;

owner = "tsenart";
repo = "deadcode";
sha256 = "05kif593f4wygnrq2fdjhn7kkcpdmgjnykcila85d0gqlb1f36g0";
};

meta = with lib; {
description = "deadcode is a very simple utility which detects unused declarations in a Go package.";
homepage = https://github.com/remyoudompheng/go-misc/tree/master/deadcode;
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
29 changes: 29 additions & 0 deletions pkgs/development/tools/errcheck/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "errcheck-${version}";
version = "1.1.0";

goPackagePath = "github.com/kisielk/errcheck";
excludedPackages = "\\(testdata\\)";

src = fetchFromGitHub {
owner = "kisielk";
repo = "errcheck";
rev = "v${version}";
sha256 = "19vd4rxmqbk5lpiav3pf7df3yjlz0l0dwx9mn0gjq5f998iyhy6y";
};

goDeps = ./deps.nix;

meta = with lib; {
description = "errcheck is a program for checking for unchecked errors in go programs.";
homepage = https://github.com/kisielk/errcheck;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
20 changes: 20 additions & 0 deletions pkgs/development/tools/errcheck/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions pkgs/development/tools/go-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "go-tools-${version}";
version = "2017.2.2";

goPackagePath = "honnef.co/go/tools";
excludedPackages = ''\(simple\|ssa\|ssa/ssautil\|lint\|staticcheck\|unused\)/testdata'';

src = fetchFromGitHub {
owner = "dominikh";
repo = "go-tools";
rev = "${version}";
sha256 = "1khl6szjj0skkfqp234p9rf3icik7fw2pk2x0wbj3wa9q3f84hb7";
};

goDeps = ./deps.nix;

meta = with lib; {
description = "A collection of tools and libraries for working with Go code, including linters and static analysis.";
homepage = https://staticcheck.io;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
20 changes: 20 additions & 0 deletions pkgs/development/tools/go-tools/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions pkgs/development/tools/goconst/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "goconst-${version}";
version = "1.1.0";

goPackagePath = "github.com/jgautheron/goconst";
excludedPackages = ''testdata'';

src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
rev = version;
sha256 = "0zhscvv9w54q1h2vs8xx3qkz98cf36qhxjvdq0xyz3qvn4vhnyw6";
};

meta = with lib; {
description = "Find in Go repeated strings that could be replaced by a constant";
homepage = https://github.com/jgautheron/goconst;
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
28 changes: 28 additions & 0 deletions pkgs/development/tools/gocyclo/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "gocyclo-unstable-${version}";
version = "2015-02-08";
rev = "aa8f8b160214d8dfccfe3e17e578dd0fcc6fede7";

goPackagePath = "github.com/alecthomas/gocyclo";

src = fetchFromGitHub {
inherit rev;

owner = "alecthomas";
repo = "gocyclo";
sha256 = "094rj97q38j53lmn2scshrg8kws8c542yq5apih1ahm9wdkv8pxr";
};

meta = with lib; {
description = "Calculate cyclomatic complexities of functions in Go source code.";
homepage = https://github.com/alecthomas/gocyclo;
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
31 changes: 31 additions & 0 deletions pkgs/development/tools/gogetdoc/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ buildGoPackage
, lib
, fetchFromGitHub
}:

buildGoPackage rec {
name = "gogetdoc-unstable-${version}";
version = "2018-10-25";
rev = "9098cf5fc236a5e25060730544af2ba6d65cd968";

goPackagePath = "github.com/zmb3/gogetdoc";
excludedPackages = "\\(testdata\\)";

src = fetchFromGitHub {
inherit rev;

owner = "zmb3";
repo = "gogetdoc";
sha256 = "159dgkd2lz07kimbpzminli5p539l4ry0dr93r46iz3lk5q76znl";
};

goDeps = ./deps.nix;

meta = with lib; {
description = "Gets documentation for items in Go source code";
homepage = https://github.com/zmb3/gogetdoc;
license = licenses.bsd3;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
13 changes: 13 additions & 0 deletions pkgs/development/tools/gogetdoc/deps.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading