From aa80bf96ee8d386513f81648f3bf886cc46614b1 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 2 Jan 2026 01:26:29 +0100 Subject: [PATCH] chow-kick: fix build for GCC 15 --- pkgs/by-name/ch/chow-kick/package.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/by-name/ch/chow-kick/package.nix b/pkgs/by-name/ch/chow-kick/package.nix index b65941f8d089..fb4716d53c96 100644 --- a/pkgs/by-name/ch/chow-kick/package.nix +++ b/pkgs/by-name/ch/chow-kick/package.nix @@ -55,6 +55,23 @@ stdenv.mkDerivation (finalAttrs: { ]; postPatch = '' + # Fix width/height naming in chowdsp_GraphicsHelpers.h + substituteInPlace modules/chowdsp_utils/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h --replace-fail \ + 'position.y += r.h;' \ + 'position.y += r.height;' + + substituteInPlace modules/chowdsp_utils/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h --replace-fail \ + 'height -= r.h;' \ + 'height -= r.height;' + + substituteInPlace modules/chowdsp_utils/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h --replace-fail \ + 'position.x += r.w;' \ + 'position.x += r.width;' + + substituteInPlace modules/chowdsp_utils/modules/common/chowdsp_core/DataStructures/chowdsp_GraphicsHelpers.h --replace-fail \ + 'width -= r.w;' \ + 'width -= r.width;' + substituteInPlace modules/chowdsp_wdf/CMakeLists.txt --replace-fail \ 'cmake_minimum_required(VERSION 3.1)' \ 'cmake_minimum_required(VERSION 4.0)'