From d1605b45386de4649e959a1322adf3c14971e3b9 Mon Sep 17 00:00:00 2001 From: Daniel Ethridge Date: Mon, 3 May 2021 22:06:51 -0400 Subject: [PATCH] Add back an updated version of the XDG-config paths patch --- pkgs/applications/audio/audacity/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/audio/audacity/default.nix b/pkgs/applications/audio/audacity/default.nix index 1ce0a44445b..d8db58e6d36 100644 --- a/pkgs/applications/audio/audacity/default.nix +++ b/pkgs/applications/audio/audacity/default.nix @@ -1,6 +1,7 @@ { stdenv , lib , fetchFromGitHub +, fetchpatch , cmake , pkg-config , python3 @@ -53,6 +54,19 @@ stdenv.mkDerivation rec { sha256 = "035qq2ff16cdl2cb9iply2bfjmhfl1dpscg79x6c9l0i9m8k41zj"; }; + patches = [ + (fetchpatch { + url = "https://github.com/audacity/audacity/commit/007852e51fcbb5f1f359d112f28b8984a604dac6.patch"; + sha256 = "1ajwp0zq725qp5v98av0g9z05w153vdrk69f61aq2qa73g7p1fnz"; + name = "audacity_xdg_paths.patch"; + }) + ]; + + # this file *should* be generated by cmake but as of 2.4.2 isn't yet + postPatch = '' + touch src/RevisionIdent.h + ''; + # workaround for a broken cmake. Drop it with a later version to see if it works. # https://github.com/NixOS/nixpkgs/issues/94905 cmakeFlags = lib.optional stdenv.isLinux "-DCMAKE_OSX_ARCHITECTURES=";