From 4beac634621e5b2505ec002354926ea9f11159f5 Mon Sep 17 00:00:00 2001 From: nartsisss Date: Thu, 9 Jan 2025 03:38:50 +0300 Subject: [PATCH] arnis: init at 2.1.3 --- pkgs/by-name/ar/arnis/package.nix | 40 +++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/by-name/ar/arnis/package.nix diff --git a/pkgs/by-name/ar/arnis/package.nix b/pkgs/by-name/ar/arnis/package.nix new file mode 100644 index 00000000000000..d1cf7d06353ad0 --- /dev/null +++ b/pkgs/by-name/ar/arnis/package.nix @@ -0,0 +1,40 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + versionCheckHook, + nix-update-script, +}: +rustPlatform.buildRustPackage rec { + pname = "arnis"; + version = "2.1.3"; + + src = fetchFromGitHub { + owner = "louis-e"; + repo = "arnis"; + tag = "v${version}"; + hash = "sha256-3Gdrgo6j50ieR0E6q0DeKShHbng9sBjBC0hBAPLsnt0="; + }; + + cargoHash = "sha256-w5XFeyZ+1on7ZkCwROZhbKZCVbSxkVzqIe0/yvJzUgQ="; + + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + #opening ui (bug) + #versionCheckProgramArg = [ "--version" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Real world location generator for Minecraft Java Edition"; + longDescription = '' + Open source project written in Rust generates any chosen location from + the real world in Minecraft Java Edition with a high level of detail. + ''; + homepage = "https://github.com/louis-e/arnis"; + changelog = "https://github.com/louis-e/arnis/releases/tag/v${version}"; + license = lib.licenses.apl20; + maintainers = with lib.maintainers; [ nartsiss ]; + mainProgram = "arnis"; + }; +}