Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: rapidraw 1.6.0 -> 1.6.1 https://github.com/CyberTimon/RapidRAW/releases attrpath: rapidraw Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] skipping because derivation has updateScript [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/sgc8aj87473aqgxrbbhxpkngqr2z72dp-packages.json.drv building '/nix/store/sgc8aj87473aqgxrbbhxpkngqr2z72dp-packages.json.drv'... Going to be running update for following packages: - rapidraw-1.6.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - rapidraw-1.6.0: UPDATING ... - rapidraw-1.6.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/by-name/ra/rapidraw/package.nix b/pkgs/by-name/ra/rapidraw/package.nix index c4e6558da1fb..496f48f3731d 100644 --- a/pkgs/by-name/ra/rapidraw/package.nix +++ b/pkgs/by-name/ra/rapidraw/package.nix @@ -43,16 +43,16 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "rapidraw"; - version = "1.6.0"; + version = "1.6.1"; src = fetchFromGitHub { owner = "CyberTimon"; repo = "RapidRAW"; tag = "v${finalAttrs.version}"; - hash = "sha256-CxuoyscGiZmWz2P3i3tcKe0JIL2PIvCk6AicjgdyUzw="; + hash = "sha256-+sV8XRK+rBVKB6AdoGuz7q6bYtz8HwnVZghK3JjGFes="; }; - cargoHash = "sha256-UEM5UG+0fh5StIVU8AIptX6bqwTqUA4SNOn1GmUPfow="; + cargoHash = "sha256-QItJQ7POtH+SRr5pyLJAWD4wx+fRpx1JI/KK6KIgNT8="; npmDeps = fetchNpmDeps { inherit (finalAttrs) src; No auto update branch exists Old version 1.6.0" not present in master derivation file with contents: { lib, stdenv, fetchFromGitHub, fetchNpmDeps, rustPlatform, makeWrapper, pkg-config, wrapGAppsHook4, openssl, onnxruntime, webkitgtk_4_1, gtk3, glib, gdk-pixbuf, libappindicator, cairo, pango, libxrender, libxrandr, libxi, libxfixes, libxext, libxcursor, libx11, libxcb, libxkbcommon, vulkan-loader, libjpeg, libpng, zlib, libGL, dbus, gvfs, libheif, glib-networking, nodejs_24, npmHooks, cargo-tauri, writableTmpDirAsHomeHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "rapidraw"; version = "1.6.1"; src = fetchFromGitHub { owner = "CyberTimon"; repo = "RapidRAW"; tag = "v${finalAttrs.version}"; hash = "sha256-+sV8XRK+rBVKB6AdoGuz7q6bYtz8HwnVZghK3JjGFes="; }; cargoHash = "sha256-QItJQ7POtH+SRr5pyLJAWD4wx+fRpx1JI/KK6KIgNT8="; npmDeps = fetchNpmDeps { inherit (finalAttrs) src; hash = "sha256-DXz+An1LzPiHM8rY+7KdrsieimAjwPYJBiGSa624SE0="; }; nativeBuildInputs = [ pkg-config makeWrapper wrapGAppsHook4 nodejs_24 npmHooks.npmConfigHook cargo-tauri.hook writableTmpDirAsHomeHook ]; buildInputs = [ nodejs_24 glib-networking openssl gtk3 glib gdk-pixbuf cairo pango libx11 libxi libxcursor libxext libxrandr libxrender libxcb libxfixes libxkbcommon vulkan-loader libjpeg libpng zlib libGL dbus libheif onnxruntime wrapGAppsHook4 ] ++ lib.optionals stdenv.hostPlatform.isLinux [ webkitgtk_4_1 libappindicator gvfs ]; cargoRoot = "src-tauri"; buildAndTestSubdir = "src-tauri"; # Set HOME for npm to avoid permission issues and add node_modules to path preBuild = '' export PATH="$PWD/node_modules/.bin:$PATH" # Configure Tauri to use lowercase binary name substituteInPlace src-tauri/tauri.conf.json \ --replace-fail ' "identifier": "io.github.CyberTimon.RapidRAW",' ' "identifier": "io.github.CyberTimon.RapidRAW", "mainBinaryName": "rapidraw",' # Disable downloading of ONNX runtime library this is correctly linked during postInstall substituteInPlace src-tauri/build.rs \ --replace-fail 'if !is_valid' 'if false' ''; dontWrapGApps = true; env = { ORT_STRATEGY = "system"; }; postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' # Patch the .desktop file to set the Categories field sed -i '/^Categories=/c\Categories=Graphics;Photography' "$out/share/applications/RapidRAW.desktop" # Ensure the resources directory exists before linking mkdir -p $out/lib/RapidRAW/resources # link the .so file ln -sf ${onnxruntime}/lib/libonnxruntime.so $out/lib/RapidRAW/resources/libonnxruntime.so '' + lib.optionalString stdenv.hostPlatform.isDarwin '' # The app also dlopen()s libonnxruntime.dylib at a hardcoded path inside the bundle mkdir -p "$out/Applications/RapidRAW.app/Contents/Resources/resources" ln -sf ${onnxruntime}/lib/libonnxruntime.dylib "$out/Applications/RapidRAW.app/Contents/Resources/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" '' + lib.optionalString stdenv.hostPlatform.isDarwin '' wrapGApp "$out/Applications/RapidRAW.app/Contents/MacOS/rapidraw" \ --set ORT_STRATEGY "system" ''; passthru.updateScript = nix-update-script { }; meta = { description = "Blazingly-fast, non-destructive, and GPU-accelerated RAW image editor built with performance in mind"; homepage = "https://github.com/CyberTimon/RapidRAW"; license = lib.licenses.agpl3Only; mainProgram = "rapidraw"; maintainers = with lib.maintainers; [ philipdb taciturnaxolotl ]; platforms = lib.platforms.linux ++ lib.platforms.darwin; }; })