From 352d98d37e6e941d0f2f84109663eab59a8dc0a3 Mon Sep 17 00:00:00 2001 From: LionsTech Date: Wed, 26 Feb 2025 23:22:59 +0100 Subject: [PATCH] texmacs: Apply patch to fix compile error with clang 19.5 --- pkgs/applications/editors/texmacs/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/editors/texmacs/default.nix b/pkgs/applications/editors/texmacs/default.nix index 329c0f5a8893..b5b9026f0140 100644 --- a/pkgs/applications/editors/texmacs/default.nix +++ b/pkgs/applications/editors/texmacs/default.nix @@ -20,6 +20,7 @@ qtbase, qtsvg, qtmacextras, + fetchpatch, ghostscriptX ? null, extraFonts ? false, chineseFonts ? false, @@ -79,6 +80,14 @@ stdenv.mkDerivation { qtmacextras ]; + patches = [ + (fetchpatch { + name = "fix-compile-clang-19.5.patch"; + url = "https://github.com/texmacs/texmacs/commit/e72783b023f22eaa0456d2e4cc76ae509d963672.patch"; + hash = "sha256-oJCiXWTY89BdxwbgtFvfThid0WM83+TAUThSihfr0oA="; + }) + ]; + cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [ (lib.cmakeFeature "TEXMACS_GUI" "Qt") (lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "./TeXmacs.app/Contents/Resources")