mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
29 lines
665 B
Nix
29 lines
665 B
Nix
{ buildGoPackage
|
|
, lib
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "goconst";
|
|
version = "1.2.0";
|
|
|
|
goPackagePath = "github.com/jgautheron/goconst";
|
|
|
|
excludedPackages = [ "tests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgautheron";
|
|
repo = "goconst";
|
|
rev = version;
|
|
sha256 = "10yy9llmbznaq3v11sxywk1wpwhn0ddly7lxs31z1sf8paan7aig";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|