From 70322ed5bef680b3d48d4d3b9d5670cc9d6b5edb Mon Sep 17 00:00:00 2001 From: PhiliPdB Date: Thu, 15 Jan 2026 20:01:08 +0100 Subject: [PATCH 1/3] rapidraw: 1.4.5 -> 1.4.11 Changelog: https://github.com/CyberTimon/RapidRAW/compare/v1.4.5...v1.4.11 --- pkgs/by-name/ra/rapidraw/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ra/rapidraw/package.nix b/pkgs/by-name/ra/rapidraw/package.nix index 81bd053a8391..82387d2cc8cd 100644 --- a/pkgs/by-name/ra/rapidraw/package.nix +++ b/pkgs/by-name/ra/rapidraw/package.nix @@ -42,13 +42,13 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "rapidraw"; - version = "1.4.5"; + version = "1.4.11"; src = fetchFromGitHub { owner = "CyberTimon"; repo = "RapidRAW"; tag = "v${finalAttrs.version}"; - hash = "sha256-WG9Dlo7yRt+QZGA5112+BX3HHhjV0XW5nrj7PUORUFE="; + hash = "sha256-Jd/t3PWvUaQuTHqd4A4vqAfzR2QpZ/j1352gLyuqRxQ="; fetchSubmodules = true; # darwin/linux hash mismatch in rawler submodule @@ -58,11 +58,11 @@ rustPlatform.buildRustPackage (finalAttrs: { ''; }; - cargoHash = "sha256-6oI88cvlCR6TBiAAUka+Q8bkoYyTXvpMDNMfwlPjtIU="; + cargoHash = "sha256-ijyrq2BwNeJM8eM6yc5jmCicpLndhtKVlwHviMwpFS4="; npmDeps = fetchNpmDeps { inherit (finalAttrs) src; - hash = "sha256-w806JHqy2ZLFcfYVm09VKnLd7BpLI1houfMYbY3sHe0="; + hash = "sha256-jenSEANarab/oQnC80NoM1jWmvdeXF3bJ9I/vOGcBb0="; }; nativeBuildInputs = [ From 6dc078a6f5c06d129dc01f8a2a0fe9fa8d31fa80 Mon Sep 17 00:00:00 2001 From: PhiliPdB Date: Wed, 28 Jan 2026 18:22:52 +0100 Subject: [PATCH 2/3] rapidraw: fix onnxruntime not being found on darwin during check phase --- pkgs/by-name/ra/rapidraw/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ra/rapidraw/package.nix b/pkgs/by-name/ra/rapidraw/package.nix index 82387d2cc8cd..11ecd18ee01a 100644 --- a/pkgs/by-name/ra/rapidraw/package.nix +++ b/pkgs/by-name/ra/rapidraw/package.nix @@ -125,6 +125,11 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail 'if !is_valid' 'if false' ''; + # Fix dyld error about onnxruntime not being loaded on darwin during cargo test + preCheck = lib.optionalString stdenv.hostPlatform.isDarwin '' + export DYLD_LIBRARY_PATH="${onnxruntime}/lib:$DYLD_LIBRARY_PATH" + ''; + dontWrapGApps = true; # needs to be declared twice annoyingly From a08b100ead167741c3b6b6ec2998afb3e057f7b6 Mon Sep 17 00:00:00 2001 From: PhiliPdB Date: Wed, 28 Jan 2026 18:55:08 +0100 Subject: [PATCH 3/3] rapidraw: general cleanup - Move ORT_STRATEGY into `env`. - ORT_DYLIB_PATH doesn't need to be set as it is not read. - There is no dylib in resources/, no need to remove. --- pkgs/by-name/ra/rapidraw/package.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ra/rapidraw/package.nix b/pkgs/by-name/ra/rapidraw/package.nix index 11ecd18ee01a..95e27c462fe1 100644 --- a/pkgs/by-name/ra/rapidraw/package.nix +++ b/pkgs/by-name/ra/rapidraw/package.nix @@ -132,8 +132,9 @@ rustPlatform.buildRustPackage (finalAttrs: { dontWrapGApps = true; - # needs to be declared twice annoyingly - ORT_STRATEGY = "system"; + env = { + ORT_STRATEGY = "system"; + }; postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' # Patch the .desktop file to set the Categories field @@ -144,16 +145,12 @@ rustPlatform.buildRustPackage (finalAttrs: { # link the .so file ln -sf ${onnxruntime}/lib/libonnxruntime.so $out/lib/RapidRAW/resources/libonnxruntime.so - - # remove the .dylib file - rm -rf $out/lib/RapidRAW/resources/libonnxruntime.dylib ''; postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' wrapGApp $out/bin/rapidraw \ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath finalAttrs.buildInputs} \ - --set ORT_STRATEGY "system" \ - --set ORT_DYLIB_PATH "${onnxruntime}/lib/libonnxruntime.so" + --set ORT_STRATEGY "system" ''; meta = {