From 78d939d62468dca3159dc2614f16a8c5c394c6cf Mon Sep 17 00:00:00 2001 From: eveeifyeve <88671402+Eveeifyeve@users.noreply.github.com> Date: Fri, 12 Dec 2025 01:52:31 +1100 Subject: [PATCH] rgl: init at 0.17.0 Co-authroed-by: adam Co-authroed-by: Sizhe Zhao --- pkgs/by-name/rg/rgl/package.nix | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/rg/rgl/package.nix diff --git a/pkgs/by-name/rg/rgl/package.nix b/pkgs/by-name/rg/rgl/package.nix new file mode 100644 index 000000000000..ead2adb11887 --- /dev/null +++ b/pkgs/by-name/rg/rgl/package.nix @@ -0,0 +1,40 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "rgl"; + version = "0.17.0"; + + src = fetchFromGitHub { + owner = "ink0rr"; + repo = "rgl"; + tag = "v${finalAttrs.version}"; + hash = "sha256-kucD1FosCV2dxhLzxpOv/HvsqddH3NiAEVkqGTWTmGE="; + }; + + cargoHash = "sha256-/BeT18tIucgq1b5js+7QX0d1OyF5drNWMAFtv+g/XtM="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Add-on Compiler for the Bedrock Edition of Minecraft"; + homepage = "https://github.com/ink0rr/rgl"; + changelog = "https://github.com/ink0rr/rgl/releases/tag/v${finalAttrs.version}"; + license = with lib.licenses; [ + unfree + mit + ]; + mainProgram = "rgl"; + platforms = lib.platforms.unix ++ lib.platforms.windows; + maintainers = with lib.maintainers; [ eveeifyeve ]; + }; +})