mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
28 lines
715 B
Nix
28 lines
715 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goconst";
|
|
version = "1.5.1";
|
|
|
|
excludedPackages = [ "tests" ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgautheron";
|
|
repo = "goconst";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo=";
|
|
|
|
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;
|
|
};
|
|
}
|