···104104 # Use our version of gtest
105105 "-DJPEGXL_FORCE_SYSTEM_GTEST=ON"
106106107107+ "-DJPEGXL_ENABLE_SKCMS=OFF"
108108+ "-DJPEGXL_FORCE_SYSTEM_LCMS2=ON"
109109+107110 # TODO: Update this package to enable this (overridably via an option):
108111 # Viewer tools for evaluation.
109112 # "-DJPEGXL_ENABLE_VIEWERS=ON"
···121124 # the second substitution fix regex for a2x script
122125 # https://github.com/libjxl/libjxl/pull/3842
123126 postPatch = ''
127127+ # Make sure we do not accidentally build against some of the vendored dependencies
128128+ # If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag
129129+ (
130130+ shopt -s extglob
131131+ rm -rf third_party/!(sjpeg)/
132132+ )
133133+124134 substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \
125135 --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl"
126136 substituteInPlace CMakeLists.txt \