Commit c9791d9a authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

libstrangle: pull gcc-13 fix pending upstream inclusion

Without thenc change build on `gcc-13` fails as:

    src/vulkan/overlay.cpp:113:25: error: 'fprintf' was not declared in this scope
    src/vulkan/overlay.cpp:41:1: note: 'stderr' is defined in header '<cstdio>';
      this is probably fixable by adding '#include <cstdio>'
       40 | #include "limiter.h"
      +++ |+#include <cstdio>
parent 9f039b93
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitLab, libGL, libX11 }:
{ lib, stdenv, fetchFromGitLab, fetchpatch, libGL, libX11 }:

stdenv.mkDerivation rec {
  pname = "libstrangle";
@@ -17,6 +17,13 @@ stdenv.mkDerivation rec {

  patches = [
    ./nixos.patch
    # Pull the fix pending upstream inclusion for gcc-13:
    #   https://gitlab.com/torkel104/libstrangle/-/merge_requests/29
    (fetchpatch {
      name = "gcc-13.patch";
      url = "https://gitlab.com/torkel104/libstrangle/-/commit/4e17025071de1d99630febe7270b4f63056d0dfa.patch";
      hash = "sha256-AKMHAZhCPcn62pi4fBGhw2r8SNSkCDMUCpR3IlmJ7wQ=";
    })
  ];

  postPatch = ''