File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments