Skip to content

Commit ad37ee6

Browse files
authored
gorched: init at 1.6 (#407903)
2 parents 093d2d9 + 7baa403 commit ad37ee6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
}:
7+
buildGoModule (finalAttrs: {
8+
pname = "gorched";
9+
version = "1.6";
10+
11+
src = fetchFromGitHub {
12+
owner = "zladovan";
13+
repo = "gorched";
14+
tag = "v${finalAttrs.version}";
15+
hash = "sha256-cT6wkWUlz3ixv7Mu5143I5NxjfwhKQ6bLwrW3BwTtTQ=";
16+
};
17+
vendorHash = "sha256-9fucarQKltIxV8j8L+yQ6Fa7IRIhoQCNxcG21KYOpuw=";
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+
})

0 commit comments

Comments
 (0)