From 56fb2a1fa34d0e9393c5cb37fe89a433a792fd44 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Sat, 20 Dec 2025 15:26:44 +0100 Subject: [PATCH] texlive.bin.dvisvgm: fix build with gcc15 --- pkgs/tools/typesetting/tex/texlive/bin.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix index d6cc70a64c0f..40f1596302fe 100644 --- a/pkgs/tools/typesetting/tex/texlive/bin.nix +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix @@ -585,6 +585,18 @@ rec { "--with-ttfautohint" ]; + # GCC15 compataiblity patches + patches = [ + (fetchpatch { + url = "https://github.com/mgieseki/dvisvgm/commit/ebf66e3f59edf89e9d2b4fb7973b859e185eb034.patch"; + hash = "sha256-5dppK9saWOuIH4Pmv7Zk9vrRc81oK8qKZqkwCuOQhaY="; + }) + (fetchpatch { + url = "https://github.com/mgieseki/dvisvgm/commit/dcb5940dff7ca3084330119a4ff1472cd52ef6de.patch"; + hash = "sha256-rGTFeeLaWIon4O16x1wFxb3Wr020HdUR3BgrqB5r864="; + }) + ]; + # PDF handling requires mutool (from mupdf) since Ghostscript 10.01 postPatch = '' substituteInPlace src/PDFHandler.cpp \