From 7c2dc527ec9b5f7fcfc0038519134c1ce9e68d60 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 16 Nov 2023 22:41:38 +0100 Subject: [PATCH 1/3] audacity: 3.4.1 -> 3.4.2 --- pkgs/applications/audio/audacity/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 10 ---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix index 16bc4fe78891..6986cd3dc9d1 100644 --- a/pkgs/applications/audio/audacity/default.nix +++ b/pkgs/applications/audio/audacity/default.nix @@ -62,13 +62,13 @@ stdenv.mkDerivation rec { pname = "audacity"; - version = "3.4.1"; + version = "3.4.2"; src = fetchFromGitHub { owner = "audacity"; repo = "audacity"; rev = "Audacity-${version}"; - hash = "sha256-g9VdwVRrZrIKd4VUU12C691aM2ilgTJdW5Ic7sokk4M="; + hash = "sha256-YlRWCu6kQYdzast7Mf29p4FvpXJHQLG7vqqo/5SNQCQ="; }; postPatch = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f826eca73779..956d54ffc460 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30504,16 +30504,6 @@ with pkgs; audacity = callPackage ../applications/audio/audacity { inherit (darwin.apple_sdk.frameworks) AppKit CoreAudioKit; - wxGTK32 = wxGTK32.overrideAttrs { - patches = [ - (fetchpatch { # required to run audacity 3.3.3 on wxGTK 3.2.4, see PR #266945 - url = "https://github.com/wxWidgets/wxWidgets/commit/425d9455e8307c1267a79d47d77e3dafeb4d86de.patch"; - excludes = [ "docs/changes.txt" ]; - revert = true; - hash = "sha256-6LOYLDLtVCHxNdHAWv3zhlCsljIpi//RJb9XVLGD5hM="; - }) - ]; - }; }; audio-recorder = callPackage ../applications/audio/audio-recorder { }; From bdbadef293acf4889fc1f796f2d8e528dc2597a9 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 17 Nov 2023 02:15:04 +0100 Subject: [PATCH 2/3] audacity: switch to ffmpeg 6 --- pkgs/applications/audio/audacity/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix index 6986cd3dc9d1..ff9f80c12ac1 100644 --- a/pkgs/applications/audio/audacity/default.nix +++ b/pkgs/applications/audio/audacity/default.nix @@ -30,7 +30,7 @@ , libid3tag , libopus , libuuid -, ffmpeg_4 +, ffmpeg_6 , soundtouch , pcre , portaudio # given up fighting their portaudio.patch? @@ -95,7 +95,7 @@ stdenv.mkDerivation rec { buildInputs = [ expat - ffmpeg_4 + ffmpeg_6 file flac gtk3 @@ -176,7 +176,7 @@ stdenv.mkDerivation rec { # - Add the ffmpeg dynamic dependency postInstall = lib.optionalString stdenv.isLinux '' wrapProgram "$out/bin/audacity" \ - --prefix LD_LIBRARY_PATH : "$out/lib/audacity":${lib.makeLibraryPath [ ffmpeg_4 ]} \ + --prefix LD_LIBRARY_PATH : "$out/lib/audacity":${lib.makeLibraryPath [ ffmpeg_6 ]} \ --suffix AUDACITY_MODULES_PATH : "$out/lib/audacity/modules" \ --suffix AUDACITY_PATH : "$out/share/audacity" '' + lib.optionalString stdenv.isDarwin '' From 8f69705dba34cc2f52b9a6d492f48a5d4134853a Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 17 Nov 2023 19:10:10 +0100 Subject: [PATCH 3/3] audacity: prevent double wrapping --- pkgs/applications/audio/audacity/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix index ff9f80c12ac1..3dc300f01950 100644 --- a/pkgs/applications/audio/audacity/default.nix +++ b/pkgs/applications/audio/audacity/default.nix @@ -171,11 +171,14 @@ stdenv.mkDerivation rec { doCheck = false; # Test fails + dontWrapGApps = true; + # Replace audacity's wrapper, to: # - put it in the right place, it shouldn't be in "$out/audacity" # - Add the ffmpeg dynamic dependency - postInstall = lib.optionalString stdenv.isLinux '' + postFixup = lib.optionalString stdenv.isLinux '' wrapProgram "$out/bin/audacity" \ + "''${gappsWrapperArgs[@]}" \ --prefix LD_LIBRARY_PATH : "$out/lib/audacity":${lib.makeLibraryPath [ ffmpeg_6 ]} \ --suffix AUDACITY_MODULES_PATH : "$out/lib/audacity/modules" \ --suffix AUDACITY_PATH : "$out/share/audacity"