Unverified Commit e687a13b authored by nixpkgs-ci[bot]'s avatar nixpkgs-ci[bot] Committed by GitHub
Browse files

chow-kick: fix build for GCC 15 (#476083)

parents eb375a43 aa80bf96
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -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)'