Merge pull request #287078 from trofi/wxSVG-gcc-13-fix

wxSVG: fix build failure against `gcc-13`
This commit is contained in:
Weijia Wang
2024-02-08 09:34:29 +01:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
@@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
hash = "sha256-rkcykfjQpf6voGzScMgmxr6tS86yud1vzs8tt8JeJII=";
};
postPatch = ''
# Apply upstream patch for gcc-13 support:
# https://sourceforge.net/p/wxsvg/git/ci/7b17fe365fb522618fb3520d7c5c1109b138358f/
sed -i src/cairo/SVGCanvasCairo.cpp -e '1i #include <cstdint>'
'';
nativeBuildInputs = [
pkg-config
];
@@ -36,6 +42,8 @@ stdenv.mkDerivation rec {
wxGTK
] ++ lib.optional stdenv.isDarwin Cocoa;
enableParallelBuilding = true;
meta = with lib; {
homepage = "https://wxsvg.sourceforge.net/";
description = "A SVG manipulation library built with wxWidgets";
-1
View File
@@ -25502,7 +25502,6 @@ with pkgs;
wxSVG = callPackage ../development/libraries/wxSVG {
wxGTK = wxGTK32;
stdenv = gcc12Stdenv;
};
wtk = callPackage ../development/libraries/wtk { };