nixpkgs/pkgs/development/tools/goconst/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
693 B
Nix
Raw Normal View History

2022-05-02 02:47:38 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2018-11-03 03:49:58 +00:00
2022-05-02 02:47:38 +00:00
buildGoModule rec {
pname = "goconst";
2024-03-20 23:18:11 +00:00
version = "1.7.1";
2020-10-01 09:20:00 +00:00
excludedPackages = [ "tests" ];
2018-11-03 03:49:58 +00:00
src = fetchFromGitHub {
owner = "jgautheron";
repo = "goconst";
2022-05-02 02:47:38 +00:00
rev = "v${version}";
2024-03-20 23:18:11 +00:00
sha256 = "sha256-GpOZJ5/5aNw1o8fk2RSAx200v6AZ+pbNu/25i8OSS1Y=";
2018-11-03 03:49:58 +00:00
};
2023-09-06 20:10:48 +00:00
vendorHash = null;
2022-05-02 02:47:38 +00:00
ldflags = [ "-s" "-w" ];
2018-11-03 03:49:58 +00:00
meta = with lib; {
description = "Find in Go repeated strings that could be replaced by a constant";
mainProgram = "goconst";
homepage = "https://github.com/jgautheron/goconst";
2018-11-03 03:49:58 +00:00
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}