From 8744f66ee51c7adbe37d249d44f10c15ac3c0c38 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 11 Feb 2024 09:28:58 +0000 Subject: [PATCH] stone-phaser: fix `gcc-13` build failure Without the change build fails on `master` as https://hydra.nixos.org/build/247541110: In file included from ./ui/Cairo++.h:3, from ui/components/KnobSkin.hpp:2, from ui/components/KnobSkin.cpp:1: ./ui/Color.h:4:5: error: 'uint8_t' does not name a type 4 | uint8_t r, g, b, a; | ^~~~~~~ --- pkgs/applications/audio/stone-phaser/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/audio/stone-phaser/default.nix b/pkgs/applications/audio/stone-phaser/default.nix index 4feaf9cd99ac..a60200fa567f 100644 --- a/pkgs/applications/audio/stone-phaser/default.nix +++ b/pkgs/applications/audio/stone-phaser/default.nix @@ -20,6 +20,9 @@ stdenv.mkDerivation rec { postPatch = '' patch -d dpf -p 1 -i "$src/resources/patch/DPF-bypass.patch" patchShebangs ./dpf/utils/generate-ttl.sh + + # Fix gcc-13 build failure due to missing includes + sed -e '1i #include ' -i plugins/stone-phaser/ui/Color.h ''; installFlags = [ "PREFIX=$(out)" ];