mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
go-tools: init at 2017.2.2
This commit is contained in:
parent
9795ad34dd
commit
d225933b4e
29
pkgs/development/tools/go-tools/default.nix
Normal file
29
pkgs/development/tools/go-tools/default.nix
Normal file
|
@ -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
pkgs/development/tools/go-tools/deps.nix
generated
Normal file
20
pkgs/development/tools/go-tools/deps.nix
generated
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
goPackagePath = "github.com/kisielk/gotool";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://github.com/kisielk/gotool";
|
||||||
|
rev = "80517062f582ea3340cd4baf70e86d539ae7d84d";
|
||||||
|
sha256 = "14af2pa0ssyp8bp2mvdw184s5wcysk6akil3wzxmr05wwy951iwn";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
goPackagePath = "golang.org/x/tools";
|
||||||
|
fetch = {
|
||||||
|
type = "git";
|
||||||
|
url = "https://go.googlesource.com/tools";
|
||||||
|
rev = "96e9e165b75e735822645eff82850b08c377be36";
|
||||||
|
sha256 = "1zj9ck5sg9b0pphxybmvxf64hhcap7v7j37fx3v5aknf18crjjdg";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
|
@ -14739,6 +14739,8 @@ with pkgs;
|
||||||
|
|
||||||
govendor = callPackage ../development/tools/govendor { };
|
govendor = callPackage ../development/tools/govendor { };
|
||||||
|
|
||||||
|
go-tools = callPackage ../development/tools/go-tools { };
|
||||||
|
|
||||||
gotools = callPackage ../development/tools/gotools { };
|
gotools = callPackage ../development/tools/gotools { };
|
||||||
|
|
||||||
gotop = callPackage ../tools/system/gotop { };
|
gotop = callPackage ../tools/system/gotop { };
|
||||||
|
|
Loading…
Reference in a new issue