From 09ef84adeb8a369791400939136841c3751b5086 Mon Sep 17 00:00:00 2001 From: kyehn Date: Sun, 26 Oct 2025 09:21:36 +0800 Subject: [PATCH 1/2] quba: add updateScript --- pkgs/by-name/qu/quba/package.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/qu/quba/package.nix b/pkgs/by-name/qu/quba/package.nix index 18e95f6bc801..f042912153c1 100644 --- a/pkgs/by-name/qu/quba/package.nix +++ b/pkgs/by-name/qu/quba/package.nix @@ -4,12 +4,21 @@ appimageTools, fetchurl, _7zz, + writeShellScript, + nix-update, + common-updater-scripts, }: let pname = "quba"; version = "1.4.2"; + passthru.updateScript = writeShellScript "update-quiet" '' + ${lib.getExe nix-update} --system=x86_64-linux quba + hash=$(nix hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix eval --raw --file . quba.src.url --system aarch64-darwin))) + ${lib.getExe' common-updater-scripts "update-source-version"} quba $hash --system=aarch64-darwin --ignore-same-version + ''; + meta = { description = "Viewer for electronic invoices"; homepage = "https://github.com/ZUGFeRD/quba-viewer"; @@ -25,13 +34,14 @@ let hash = "sha256-3goMWN5GeQaLJimUKbjozJY/zJmqc9Mvy2+6bVSt1p0="; }; - appimageContents = appimageTools.extractType1 { inherit pname version src; }; + appimageContents = appimageTools.extractType2 { inherit pname version src; }; - linux = appimageTools.wrapType1 { + linux = appimageTools.wrapType2 { inherit pname version src + passthru meta ; @@ -44,7 +54,12 @@ let }; darwin = stdenvNoCC.mkDerivation { - inherit pname version meta; + inherit + pname + version + passthru + meta + ; src = fetchurl { url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}-universal.dmg"; From e7eb129bbf6122c1556f69f4178e0374338b9d93 Mon Sep 17 00:00:00 2001 From: kyehn Date: Sun, 26 Oct 2025 09:57:36 +0800 Subject: [PATCH 2/2] quba: 1.4.2 -> 1.5.0 --- pkgs/by-name/qu/quba/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/qu/quba/package.nix b/pkgs/by-name/qu/quba/package.nix index f042912153c1..0b3cf029a91b 100644 --- a/pkgs/by-name/qu/quba/package.nix +++ b/pkgs/by-name/qu/quba/package.nix @@ -11,12 +11,12 @@ let pname = "quba"; - version = "1.4.2"; + version = "1.5.0"; passthru.updateScript = writeShellScript "update-quiet" '' ${lib.getExe nix-update} --system=x86_64-linux quba hash=$(nix hash convert --to sri --hash-algo sha256 $(nix-prefetch-url $(nix eval --raw --file . quba.src.url --system aarch64-darwin))) - ${lib.getExe' common-updater-scripts "update-source-version"} quba $hash --system=aarch64-darwin --ignore-same-version + ${lib.getExe' common-updater-scripts "update-source-version"} quba $(nix eval --raw --file . quba.version) $hash --system=aarch64-darwin --ignore-same-version ''; meta = { @@ -31,7 +31,7 @@ let src = fetchurl { url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}.AppImage"; - hash = "sha256-3goMWN5GeQaLJimUKbjozJY/zJmqc9Mvy2+6bVSt1p0="; + hash = "sha256-xB1r8DNFOFQQx+MeGC1mWhf7PuMavM7DyYRBlEjAZ8k="; }; appimageContents = appimageTools.extractType2 { inherit pname version src; }; @@ -63,7 +63,7 @@ let src = fetchurl { url = "https://github.com/ZUGFeRD/quba-viewer/releases/download/v${version}/Quba-${version}-universal.dmg"; - hash = "sha256-q7va2D9AT0BoPhfkub/RFQxGyF12uFaCDpSYIxslqMc="; + hash = "sha256-niuU1zkxNRmCYxzto3g6i6Z3k5KCAgVIVQMgOLZJnSE="; }; unpackCmd = "7zz x -bd -osource -xr'!*/Applications' -xr'!*com.apple.provenance' $curSrc";