audacity: 3.6.4 -> 3.7.0 (#352518)

This commit is contained in:
Weijia Wang 2024-10-31 21:03:42 +01:00 committed by GitHub
commit 59c5d1689d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,9 +52,9 @@
wavpack,
wxGTK32,
gtk3,
apple-sdk_11,
libpng,
libjpeg,
darwin,
}:
# TODO
@ -62,31 +62,25 @@
stdenv.mkDerivation (finalAttrs: {
pname = "audacity";
version = "3.6.4";
version = "3.7.0";
src = fetchFromGitHub {
owner = "audacity";
repo = "audacity";
rev = "Audacity-${finalAttrs.version}";
hash = "sha256-72k79UFxhk8JUCnMzbU9lZ0Ua3Ui41EkhPGSnGkf9mE=";
hash = "sha256-jwsn/L9e1ViWLOh8Xc4lTS9FhanD4GK0BllCwtPamZc=";
};
postPatch =
''
mkdir src/private
substituteInPlace scripts/build/macOS/fix_bundle.py \
--replace "path.startswith('/usr/lib/')" "path.startswith('${builtins.storeDir}')"
--replace-fail "path.startswith('/usr/lib/')" "path.startswith('${builtins.storeDir}')"
''
+ lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace libraries/lib-files/FileNames.cpp \
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
''
+
lib.optionalString
(stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "11.0")
''
sed -z -i "s/NSAppearanceName.*systemAppearance//" src/AudacityApp.mm
'';
--replace-fail /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
'';
nativeBuildInputs =
[
@ -150,8 +144,7 @@ stdenv.mkDerivation (finalAttrs: {
util-linux
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreAudioKit # for portaudio
apple-sdk_11
libpng
libjpeg
];