chow-tape-model: patch for GCC ≥ 12

This commit is contained in:
Emily 2025-08-08 18:22:54 +01:00
parent 3d3e80e330
commit 177adfa166
2 changed files with 20 additions and 6 deletions

View File

@ -0,0 +1,14 @@
Submodule Plugin/modules/JUCE contains modified content
diff --git a/Plugin/modules/JUCE/modules/juce_gui_basics/windows/juce_ComponentPeer.h b/Plugin/modules/JUCE/modules/juce_gui_basics/windows/juce_ComponentPeer.h
index 06c0a729d..119f146b8 100644
--- a/Plugin/modules/JUCE/modules/juce_gui_basics/windows/juce_ComponentPeer.h
+++ b/Plugin/modules/JUCE/modules/juce_gui_basics/windows/juce_ComponentPeer.h
@@ -23,6 +23,8 @@
==============================================================================
*/
+#include <utility>
+
namespace juce
{

View File

@ -32,14 +32,9 @@
pkg-config,
python3,
sqlite,
gcc11Stdenv,
stdenv,
webkitgtk_4_0,
}:
let
# JUCE version in submodules is incompatible with GCC12
# See here: https://forum.juce.com/t/build-fails-on-fedora-wrong-c-version/50902/2
stdenv = gcc11Stdenv;
in
stdenv.mkDerivation (finalAttrs: {
pname = "chow-tape-model";
version = "2.11.4";
@ -52,6 +47,11 @@ stdenv.mkDerivation (finalAttrs: {
fetchSubmodules = true;
};
patches = [
# Fix the old JUCE submodule for GCC ≥ 12
./fix-juce-gcc-12.patch
];
nativeBuildInputs = [
pkg-config
cmake