Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 35 lines 710 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "goconst"; 9 version = "1.8.2"; 10 11 excludedPackages = [ "tests" ]; 12 13 src = fetchFromGitHub { 14 owner = "jgautheron"; 15 repo = "goconst"; 16 rev = "v${version}"; 17 sha256 = "sha256-srBUqWfiuMqpKH/O66gJEEKFOC/ifsu2xscEnp54cRY="; 18 }; 19 20 vendorHash = null; 21 22 ldflags = [ 23 "-s" 24 "-w" 25 ]; 26 27 meta = with lib; { 28 description = "Find in Go repeated strings that could be replaced by a constant"; 29 mainProgram = "goconst"; 30 homepage = "https://github.com/jgautheron/goconst"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ kalbasit ]; 33 platforms = platforms.linux ++ platforms.darwin; 34 }; 35}