From 0aaabe42e9506bfb7c95e3e5cae384620641ecfa Mon Sep 17 00:00:00 2001 From: Adrian Sieber <36796532+ad-si@users.noreply.github.com> Date: Thu, 13 Aug 2026 20:11:33 +0000 Subject: [PATCH] woxi: init at 0.3.0 --- pkgs/by-name/wo/woxi/package.nix | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/wo/woxi/package.nix diff --git a/pkgs/by-name/wo/woxi/package.nix b/pkgs/by-name/wo/woxi/package.nix new file mode 100644 index 000000000000..85d36d24a89f --- /dev/null +++ b/pkgs/by-name/wo/woxi/package.nix @@ -0,0 +1,42 @@ +{ + lib, + rustPlatform, + fetchCrate, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "woxi"; + version = "0.3.0"; + + __structuredAttrs = true; + + src = fetchCrate { + inherit (finalAttrs) pname version; + hash = "sha256-gw2pudFKAFJ6MXzpqg7p5pHPhmQMTPH6hjlEPK6wr60="; + }; + + cargoHash = "sha256-mNA54ukwF6vsbm3sZnlfTENU/Hl2JAXfcZyDfj7LjY4="; + + # The test suite compares Woxi's output against the proprietary + # `wolframscript` engine, which is unavailable in the sandbox. + doCheck = false; + + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Interpreter for a subset of the Wolfram Language"; + homepage = "https://github.com/ad-si/Woxi"; + changelog = "https://github.com/ad-si/Woxi/releases/tag/v${finalAttrs.version}"; + license = lib.licenses.agpl3Plus; + mainProgram = "woxi"; + maintainers = with lib.maintainers; [ + ad-si + Dietr1ch + ]; + platforms = lib.platforms.unix; + }; +})