Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 nix-update-script, 6}: 7buildGoModule (finalAttrs: { 8 pname = "gorched"; 9 version = "1.7"; 10 11 src = fetchFromGitHub { 12 owner = "zladovan"; 13 repo = "gorched"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-n4MKZqhgAIsgK9XPv2pF8mK0I4suSN02JkqY7Aj+LG0="; 16 }; 17 vendorHash = "sha256-ohFj0jEHt0SV3pC9+mz+XAjOJ6MIBFY7CJf+G++r72U="; 18 19 postPatch = '' 20 mkdir ./cmd/gorched 21 mv ./cmd/main.go ./cmd/gorched/main.go 22 ''; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 description = ''Terminal based game written in Go inspired by "The Mother of all games" Scorched Earth''; 28 homepage = "https://github.com/zladovan/gorched"; 29 changelog = "https://github.com/zladovan/gorched/releases/tag/v${finalAttrs.version}"; 30 license = lib.licenses.mit; 31 maintainers = with lib.maintainers; [ xiaoxiangmoe ]; 32 mainProgram = "gorched"; 33 }; 34})