@@ -1,6 +1,7 @@
11{ stdenv
22, lib
33, fetchFromGitHub
4+, fetchpatch
45, cmake
56, pkg-config
67, python3
@@ -53,6 +54,19 @@ stdenv.mkDerivation rec {
5354 sha256 = "035qq2ff16cdl2cb9iply2bfjmhfl1dpscg79x6c9l0i9m8k41zj";
5455 };
5556
57+ patches = [
58+ (fetchpatch {
59+ url = "https://github.com/audacity/audacity/commit/007852e51fcbb5f1f359d112f28b8984a604dac6.patch";
60+ sha256 = "1ajwp0zq725qp5v98av0g9z05w153vdrk69f61aq2qa73g7p1fnz";
61+ name = "audacity_xdg_paths.patch";
62+ })
63+ ];
64+
65+ # this file *should* be generated by cmake but as of 2.4.2 isn't yet
66+ postPatch = ''
67+ touch src/RevisionIdent.h
68+ '';
69+
5670 # workaround for a broken cmake. Drop it with a later version to see if it works.
5771 # https://github.com/NixOS/nixpkgs/issues/94905
5872 cmakeFlags = lib.optional stdenv.isLinux "-DCMAKE_OSX_ARCHITECTURES=";