From 5746f26d7a25a043943a178c0e259cde8f443661 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Sat, 13 Jan 2024 00:21:54 +0200 Subject: [PATCH 1/2] zynaddsubfx: fix build with GCC 13 --- pkgs/applications/audio/zynaddsubfx/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/audio/zynaddsubfx/default.nix b/pkgs/applications/audio/zynaddsubfx/default.nix index 2c8ecfd199e0..0060e8d4c7f4 100644 --- a/pkgs/applications/audio/zynaddsubfx/default.nix +++ b/pkgs/applications/audio/zynaddsubfx/default.nix @@ -94,6 +94,11 @@ in stdenv.mkDerivation rec { # Find FLTK without requiring an OpenGL library in buildInputs ++ lib.optional (guiModule == "fltk") "-DFLTK_SKIP_OPENGL=ON"; + CXXFLAGS = [ + # GCC 13: error: 'uint8_t' does not name a type + "-include cstdint" + ]; + doCheck = true; nativeCheckInputs = [ cxxtest ruby ]; From 0a9221a0c771c24144f3b6d27792519e29c3166c Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Sat, 13 Jan 2024 02:02:08 +0200 Subject: [PATCH 2/2] surge-xt: fix build with GCC 13 --- pkgs/applications/audio/surge-XT/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/audio/surge-XT/default.nix b/pkgs/applications/audio/surge-XT/default.nix index 7c36c190128d..ccd5ad12c0e8 100644 --- a/pkgs/applications/audio/surge-XT/default.nix +++ b/pkgs/applications/audio/surge-XT/default.nix @@ -71,6 +71,11 @@ stdenv.mkDerivation rec { "-DSURGE_JUCE_PATH=${juce-lv2}" ]; + CXXFLAGS = [ + # GCC 13: error: 'uint32_t' has not been declared + "-include cstdint" + ]; + # JUCE dlopen's these at runtime, crashes without them NIX_LDFLAGS = (toString [ "-lX11"