Commit 4c2316f5 authored by Martin Joerg's avatar Martin Joerg
Browse files

mupdf: fix build with enableCxx against Clang >= 20

parent 90fa540f
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  lib,
  fetchurl,
  fetchFromGitHub,
  fetchpatch,
  copyDesktopItems,
  makeDesktopItem,
  desktopToDarwinBundle,
@@ -85,6 +86,19 @@ stdenv.mkDerivation rec {
    # Upstream C++ wrap script only defines fixed-sized integers on macOS but
    # this is required on aarch64-linux too.
    ./fix-cpp-build.patch
  ]
  # fix compatibility with Clang >= 20
  ++ lib.optionals enableCxx [
    (fetchpatch {
      name = "scripts-wrap-parse.py-get_args-improve-caching-of-re.patch";
      url = "https://github.com/ArtifexSoftware/mupdf/commit/559e45ac8c134712cd8eaee01536ea3841e3a449.patch";
      hash = "sha256-gI3hzrNo6jj9eqQ9E/BJ3jxXi/sl1C5WRyYlkG3Gkfg=";
    })
    (fetchpatch {
      name = "scripts-wrap-parse.py-get_args-fix-for-libclang-20.patch";
      url = "https://github.com/ArtifexSoftware/mupdf/commit/4bbf411898341d3ba30f521a6c137a788793cd45.patch";
      hash = "sha256-cxKNziAGjpDwEw/9ZQHslMeJbiqYo80899BDkUOIX8g=";
    })
  ];

  postPatch = ''