regolith: init at 1.5.1 (#374961)

This commit is contained in:
Gaétan Lepage
2025-01-27 17:08:13 +01:00
committed by GitHub
2 changed files with 49 additions and 0 deletions
+6
View File
@@ -1843,6 +1843,12 @@
githubId = 53097078;
name = "AJ Reifsnyder";
};
arexon = {
email = "arexonreal@gmail.com";
github = "arexon";
githubId = 65680034;
name = "arexon";
};
arezvov = {
email = "alex@rezvov.ru";
github = "arezvov";
+43
View File
@@ -0,0 +1,43 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
buildGoModule rec {
pname = "regolith";
version = "1.5.1";
src = fetchFromGitHub {
owner = "Bedrock-OSS";
repo = "regolith";
tag = version;
hash = "sha256-gTEQ2hu581tD1I/3iLHzE/2nekAG49/M6V6QeqPhYsA=";
};
# Requires network access.
doCheck = false;
vendorHash = "sha256-+4J4Z7lhbAphi6WUEJN9pzNXf6ROUKqN4NdKI2sQSW0=";
ldflags = [
"-X main.buildSource=nix"
"-X main.version=${version}"
];
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Add-on Compiler for the Bedrock Edition of Minecraft";
homepage = "https://github.com/Bedrock-OSS/regolith";
changelog = "https://github.com/Bedrock-OSS/regolith/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ arexon ];
mainProgram = "regolith";
};
}