depot/third_party/nixpkgs/pkgs/development/tools/goconst/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
664 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "goconst";
version = "1.7.0";
excludedPackages = [ "tests" ];
src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
rev = "v${version}";
sha256 = "sha256-yhvZucbFldjTPVdo0epNPFMgmvz0JFPF7Gra0t11zXU=";
};
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;
};
}