{airwin2rack,vaporizer2}: fix compatibility with JUCE 8.0.11 (#468894)

This commit is contained in:
dotlambda
2025-12-09 16:36:16 +00:00
committed by GitHub
2 changed files with 18 additions and 7 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ let
clapJuceExtensions = fetchFromGitHub {
owner = "free-audio";
repo = "clap-juce-extensions";
rev = "4f33b4930b6af806018c009f0f24b3a50808af99";
hash = "sha256-M+T7ll3Ap6VIP5ub+kfEKwT2RW2IxxY4wUPRQKFIotk=";
rev = "645ed2fd0949d36639e3d63333f26136df6df769";
hash = "sha256-Lx88nyEFjPLA5yh8rrqBdyZIxe/j0FgIHoyKcbjuuI4=";
fetchSubmodules = true;
};
+16 -5
View File
@@ -30,6 +30,15 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
postPatch = ''
# LTO needs special setup on Linux
substituteInPlace CMakeLists.txt \
--replace-fail 'juce::juce_recommended_lto_flags' '# Not forcing LTO'
rm -rf clap-juce-extensions
ln -s ${finalAttrs.passthru.clapJuceExtensions} clap-juce-extensions
'';
strictDeps = true;
nativeBuildInputs = [
@@ -56,11 +65,13 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeFeature "USE_SYSTEM_JUCE" "ON")
];
# LTO needs special setup on Linux
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail 'juce::juce_recommended_lto_flags' '# Not forcing LTO'
'';
passthru.clapJuceExtensions = fetchFromGitHub {
owner = "free-audio";
repo = "clap-juce-extensions";
rev = "645ed2fd0949d36639e3d63333f26136df6df769";
hash = "sha256-Lx88nyEFjPLA5yh8rrqBdyZIxe/j0FgIHoyKcbjuuI4=";
fetchSubmodules = true;
};
meta = {
description = "Wavetable synthesizer";