From 4411b09a245502035c223fa73e0eef8b985ec839 Mon Sep 17 00:00:00 2001 From: Teddy See Date: Mon, 16 Feb 2026 22:45:02 +0000 Subject: [PATCH 1/2] pianoteq.trial_9: init at 9.1.2 --- pkgs/applications/audio/pianoteq/default.nix | 30 ++++++++++++++++++-- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/pianoteq/default.nix b/pkgs/applications/audio/pianoteq/default.nix index 7778fed0e1c2..d3c1bed7b345 100644 --- a/pkgs/applications/audio/pianoteq/default.nix +++ b/pkgs/applications/audio/pianoteq/default.nix @@ -13,6 +13,7 @@ makeDesktopItem, makeWrapper, p7zip, + gnutar, writeShellScript, }: let @@ -46,9 +47,17 @@ let pname = "pianoteq-${name}"; - unpackPhase = '' - ${p7zip}/bin/7z x $src - ''; + unpackPhase = + if lib.hasSuffix ".7z" src then + '' + ${p7zip}/bin/7z x $src + '' + else if lib.hasSuffix ".tar.xz" src then + '' + ${gnutar}/bin/tar -xf $src + '' + else + throw "unexpected file format"; nativeBuildInputs = [ autoPatchelfHook @@ -243,6 +252,7 @@ let version6 = "6.7.3"; version7 = "7.5.4"; version8 = "8.4.0"; + version9 = "9.1.2"; mkStandard = version: hash: @@ -292,8 +302,22 @@ let inherit hash; }; }; + mkTrial9 = + hash: + mkPianoteq { + name = "trial"; + version = version9; + mainProgram = "Pianoteq 9"; + startupWMClass = "Pianoteq Trial"; + src = fetchPianoteqTrial { + name = "pianoteq_trial_v${versionForFile version9}.tar.xz"; + inherit hash; + }; + }; in { + trial_9 = mkTrial9 "sha256-1ofPL6F12Gv+k2rZBadOa5Iyukuji6vdww87ufdKjM8="; + standard_8 = mkStandard version8 "sha256-ZDGB/SOOz+sWz7P+sNzyaipEH452n8zq5LleO3ztSXc="; stage_8 = mkStage version8 ""; standard-trial_8 = mkStandardTrial version8 "sha256-K3LbAWxciXt9hVAyRayxSoE/IYJ38Fd03+j0s7ZsMuw="; From 86185f6eb9c4c01917b2ec7cc8bd330547a05ccd Mon Sep 17 00:00:00 2001 From: Teddy See Date: Wed, 25 Feb 2026 15:43:15 +0000 Subject: [PATCH 2/2] pianoteq.stage_9: init at 9.1.2 --- pkgs/applications/audio/pianoteq/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/applications/audio/pianoteq/default.nix b/pkgs/applications/audio/pianoteq/default.nix index d3c1bed7b345..d596c8b20be0 100644 --- a/pkgs/applications/audio/pianoteq/default.nix +++ b/pkgs/applications/audio/pianoteq/default.nix @@ -314,9 +314,22 @@ let inherit hash; }; }; + mkStage9 = + hash: + mkPianoteq { + name = "stage"; + version = version9; + mainProgram = "Pianoteq 9 STAGE"; + startupWMClass = "Pianoteq STAGE"; + src = fetchPianoteqWithLogin { + name = "pianoteq_setup_v${versionForFile version9}.tar.xz"; + inherit hash; + }; + }; in { trial_9 = mkTrial9 "sha256-1ofPL6F12Gv+k2rZBadOa5Iyukuji6vdww87ufdKjM8="; + stage_9 = mkStage9 "sha256-Jvm/AhBwgj5INW8U48rJjgDB7j/Z1VnYKczvtrpl/AY="; standard_8 = mkStandard version8 "sha256-ZDGB/SOOz+sWz7P+sNzyaipEH452n8zq5LleO3ztSXc="; stage_8 = mkStage version8 "";