From dae1980bf763b2f58043d1ee54712bee4f449c2f Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Sun, 26 Apr 2026 13:50:35 +0200 Subject: [PATCH] sftool-gui: 1.0.3 -> 1.1.4-unstable-2026-04-16 diff: https://github.com/OpenSiFli/sftool-gui/compare/v1.0.3...e182a5973a4e23f8af078f3480a8b2416d7439b3 --- .../sf/sftool-gui/disable-bundling.patch | 22 +++++++++++++++++++ pkgs/by-name/sf/sftool-gui/package.nix | 19 +++++++++++----- 2 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 pkgs/by-name/sf/sftool-gui/disable-bundling.patch diff --git a/pkgs/by-name/sf/sftool-gui/disable-bundling.patch b/pkgs/by-name/sf/sftool-gui/disable-bundling.patch new file mode 100644 index 000000000000..a050ea4c4186 --- /dev/null +++ b/pkgs/by-name/sf/sftool-gui/disable-bundling.patch @@ -0,0 +1,22 @@ +diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json +index 419c116..aa3fece 100644 +--- a/src-tauri/tauri.conf.json ++++ b/src-tauri/tauri.conf.json +@@ -23,7 +23,7 @@ + "frontendDist": "../dist" + }, + "bundle": { +- "active": true, ++ "active": false, + "icon": [ + "icons/32x32.png", + "icons/128x128.png", +@@ -39,7 +39,7 @@ + "app", + "dmg" + ], +- "createUpdaterArtifacts": true ++ "createUpdaterArtifacts": false + }, + "plugins": { + "updater": { diff --git a/pkgs/by-name/sf/sftool-gui/package.nix b/pkgs/by-name/sf/sftool-gui/package.nix index 9ffcca6a8fed..f3093c92e031 100644 --- a/pkgs/by-name/sf/sftool-gui/package.nix +++ b/pkgs/by-name/sf/sftool-gui/package.nix @@ -20,21 +20,28 @@ }: rustPlatform.buildRustPackage (finalAttrs: { pname = "sftool-gui"; - version = "1.0.3"; + version = "1.1.4-unstable-2026-04-16"; src = fetchFromGitHub { owner = "OpenSiFli"; repo = "sftool-gui"; - tag = "v${finalAttrs.version}"; - hash = "sha256-kjxUl9YrvTgJby+FvUbx5ugucK8NiBqzGBhTi9Zwd1s="; + rev = "e182a5973a4e23f8af078f3480a8b2416d7439b3"; + hash = "sha256-6wYf0DNn5cjJTeuVfOB91RQP/E2YWr6PlGUnzZdwgNY="; }; - cargoHash = "sha256-XAU3ru+TxUo99OQwcXNLJ8gzBOZUkC8UCAApz7M/QTM="; + patches = [ + # We don't want tauri to bundle the built binaries as we only use them and not the + # bundled .deb, .appimage, and so on. Bundling the binaries would also require a signing + # key, which we don't have. + ./disable-bundling.patch + ]; + + cargoHash = "sha256-hwQJnhWgPqQ3ZudCsEEuWoygYDcUKXgWz15dHZ+vR6Q="; cargoRoot = "src-tauri"; pnpmDeps = fetchPnpmDeps { - fetcherVersion = 2; + fetcherVersion = 3; inherit (finalAttrs) pname version src; - hash = "sha256-gamgu9koBf+JLDswi3eGXRZybF8UiYE8CoifpQCgLaI="; + hash = "sha256-DwDXfbwgt/OSNOQbzCBlathX9QDnbEsXZLsgB67LOEk="; }; nativeBuildInputs = [