From 40e8630165883403f2065e3bff5bc004a9e9bea5 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Wed, 25 Feb 2026 21:57:38 +0900 Subject: [PATCH] magika-cli: 1.0.1 -> 1.0.2 Diff: https://github.com/google/magika/compare/cli/v1.0.1...cli/v1.0.2 - Remove `versionCheckProgramArg` to align style with 116036d574992ee61d97d16c4b065dca3f871974 - Set envs for ort-sys@2.0.0-rc.11 update - Note: This version drops x86_64-darwin support. However, no updates to the `meta` section are needed: https://github.com/google/magika/commit/6236689eee514912453b34b8a61a03dc6f25315c --- pkgs/by-name/ma/magika-cli/package.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ma/magika-cli/package.nix b/pkgs/by-name/ma/magika-cli/package.nix index 9184d58d9b9b..6ea3a46014cc 100644 --- a/pkgs/by-name/ma/magika-cli/package.nix +++ b/pkgs/by-name/ma/magika-cli/package.nix @@ -16,16 +16,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "magika-cli"; - version = "1.0.1"; + version = "1.0.2"; src = fetchFromGitHub { owner = "google"; repo = "magika"; tag = "cli/v${finalAttrs.version}"; - hash = "sha256-g/fnSdh2jpOHOLTuR4DUPB1kbC0eKADHLKcfB1q08XI="; + hash = "sha256-1WJRkqFQqlSFzr4wkEbRwj1WoxDKTG/1OCtC+914ryY="; }; - cargoHash = "sha256-uqnTyedry9nWyO2518r0D3hk6oWb4wQE/Ku0cOkSjBA="; + cargoHash = "sha256-rA+GYCWuinwRVWf3VuFbPgmAwl3vDsaxLjCtsKMtpiU="; cargoRoot = "rust/cli"; buildAndTestSubdir = finalAttrs.cargoRoot; @@ -41,13 +41,18 @@ rustPlatform.buildRustPackage (finalAttrs: { env = { OPENSSL_NO_VENDOR = "true"; + ORT_STRATEGY = "system"; + ORT_LIB_LOCATION = "${lib.getLib onnxruntime}/lib"; + + # Required to prevent "ort-sys could not link to the ONNX Runtime build": + # https://github.com/pykeio/ort/issues/517#issuecomment-3761926178 + ORT_PREFER_DYNAMIC_LINK = "true"; }; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; - versionCheckProgramArg = "--version"; passthru = { tests = {