gorched: init at 1.6 (#407903)

This commit is contained in:
Aleksana
2025-05-18 15:59:47 +08:00
committed by GitHub
+34
View File
@@ -0,0 +1,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "gorched";
version = "1.6";
src = fetchFromGitHub {
owner = "zladovan";
repo = "gorched";
tag = "v${finalAttrs.version}";
hash = "sha256-cT6wkWUlz3ixv7Mu5143I5NxjfwhKQ6bLwrW3BwTtTQ=";
};
vendorHash = "sha256-9fucarQKltIxV8j8L+yQ6Fa7IRIhoQCNxcG21KYOpuw=";
postPatch = ''
mkdir ./cmd/gorched
mv ./cmd/main.go ./cmd/gorched/main.go
'';
passthru.updateScript = nix-update-script { };
meta = {
description = ''Terminal based game written in Go inspired by "The Mother of all games" Scorched Earth'';
homepage = "https://github.com/zladovan/gorched";
changelog = "https://github.com/zladovan/gorched/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xiaoxiangmoe ];
mainProgram = "gorched";
};
})