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

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

28 lines
715 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";
2022-05-02 02:47:38 +00:00
version = "1.5.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}";
sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE=";
2018-11-03 03:49:58 +00:00
};
2022-05-02 02:47:38 +00:00
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
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";
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;
};
}