Skip to content

Commit 34a9dfb

Browse files
authored
regolith: init at 1.5.1 (#374961)
2 parents edbc1db + e48e51e commit 34a9dfb

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1843,6 +1843,12 @@
18431843
githubId = 53097078;
18441844
name = "AJ Reifsnyder";
18451845
};
1846+
arexon = {
1847+
email = "[email protected]";
1848+
github = "arexon";
1849+
githubId = 65680034;
1850+
name = "arexon";
1851+
};
18461852
arezvov = {
18471853
email = "[email protected]";
18481854
github = "arezvov";
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
lib,
3+
buildGoModule,
4+
fetchFromGitHub,
5+
nix-update-script,
6+
versionCheckHook,
7+
}:
8+
buildGoModule rec {
9+
pname = "regolith";
10+
version = "1.5.1";
11+
12+
src = fetchFromGitHub {
13+
owner = "Bedrock-OSS";
14+
repo = "regolith";
15+
tag = version;
16+
hash = "sha256-gTEQ2hu581tD1I/3iLHzE/2nekAG49/M6V6QeqPhYsA=";
17+
};
18+
19+
# Requires network access.
20+
doCheck = false;
21+
22+
vendorHash = "sha256-+4J4Z7lhbAphi6WUEJN9pzNXf6ROUKqN4NdKI2sQSW0=";
23+
24+
ldflags = [
25+
"-X main.buildSource=nix"
26+
"-X main.version=${version}"
27+
];
28+
29+
nativeInstallCheckInputs = [ versionCheckHook ];
30+
versionCheckProgramArg = "--version";
31+
doInstallCheck = true;
32+
33+
passthru.updateScript = nix-update-script { };
34+
35+
meta = {
36+
description = "Add-on Compiler for the Bedrock Edition of Minecraft";
37+
homepage = "https://github.com/Bedrock-OSS/regolith";
38+
changelog = "https://github.com/Bedrock-OSS/regolith/releases/tag/${version}";
39+
license = lib.licenses.mit;
40+
maintainers = with lib.maintainers; [ arexon ];
41+
mainProgram = "regolith";
42+
};
43+
}

0 commit comments

Comments
 (0)