depot/third_party/nixpkgs/pkgs/development/tools/goconst/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

27 lines
664 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goconst";
version = "1.6.0";
excludedPackages = [ "tests" ];
src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
rev = "v${version}";
sha256 = "sha256-gd+0Gm1qANwgYKWAxpU7759BhyURalJCRxd/P6sczc4=";
};
vendorHash = null;
ldflags = [ "-s" "-w" ];
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;
};
}