Commit 64b68620 authored by qubitnano's avatar qubitnano
Browse files

raze: fix build with gcc14

parent 14a0b57f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  cmake,
  ninja,
  SDL2,
@@ -34,6 +35,15 @@ stdenv.mkDerivation (finalAttrs: {
    '';
  };

  patches = [
    # Fix build with gcc14
    (fetchpatch {
      name = "fix-gcc14.patch";
      url = "https://github.com/ZDoom/Raze/commit/f3cad8426cd808be5ded036ed12a497d27d3742e.patch";
      hash = "sha256-TMx5gFmcuSQbVPjpBnKgK7EluqPSWhLF+TU8ZRaL7LE=";
    })
  ];

  nativeBuildInputs = [
    cmake
    ninja