3
0
Fork 0
forked from mirrors/nixpkgs

goconst: init at 1.1.0

This commit is contained in:
Wael M. Nasreddine 2018-11-02 20:49:58 -07:00
parent 63d9863394
commit fe83c5c3f5
No known key found for this signature in database
GPG key ID: 82AE0A31B33CEFCF
2 changed files with 29 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -14727,6 +14727,8 @@ with pkgs;
gocode = callPackage ../development/tools/gocode { };
goconst = callPackage ../development/tools/goconst { };
goconvey = callPackage ../development/tools/goconvey { };
gotags = callPackage ../development/tools/gotags { };