at 24.05-pre 27 lines 664 B view raw
1{ lib, buildGoModule, fetchFromGitHub }: 2 3buildGoModule rec { 4 pname = "goconst"; 5 version = "1.6.0"; 6 7 excludedPackages = [ "tests" ]; 8 9 src = fetchFromGitHub { 10 owner = "jgautheron"; 11 repo = "goconst"; 12 rev = "v${version}"; 13 sha256 = "sha256-gd+0Gm1qANwgYKWAxpU7759BhyURalJCRxd/P6sczc4="; 14 }; 15 16 vendorHash = null; 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}