depot/third_party/nixpkgs/pkgs/development/tools/goconst/default.nix
Default email 7cbac10661 Project import generated by Copybara.
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
2020-11-12 09:05:59 +00:00

28 lines
665 B
Nix

{ buildGoPackage
, lib
, fetchFromGitHub
}:
buildGoPackage rec {
pname = "goconst";
version = "1.3.2";
goPackagePath = "github.com/jgautheron/goconst";
excludedPackages = [ "tests" ];
src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
rev = version;
sha256 = "0bfiblp1498ic5jbdsm6mnc8s9drhasbqsw0asi6kmcz2kmslp9s";
};
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;
};
}