at 23.05-pre 27 lines 715 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "goconst"; 5 version = "1.5.1"; 6 7 excludedPackages = [ "tests" ]; 8 9 src = fetchFromGitHub { 10 owner = "jgautheron"; 11 repo = "goconst"; 12 rev = "v${version}"; 13 sha256 = "sha256-chBWxOy9V4pO3hMaeCoKwnQxIEYiSejUOD3QDBCpaoE="; 14 }; 15 16 vendorSha256 = "sha256-pQpattmS9VmO3ZIQUFn66az8GSmB4IvYhTTCFn6SUmo="; 17 18 ldflags = [ "-s" "-w" ]; 19 20 meta = with lib; { 21 description = "Find in Go repeated strings that could be replaced by a constant"; 22 homepage = "https://github.com/jgautheron/goconst"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ kalbasit ]; 25 platforms = platforms.linux ++ platforms.darwin; 26 }; 27}