libjxl: build against system lcms2 (#359039)

prevent accidentally building against vendored libs.
Fixes build of pkgsMusl.libjxl.

Change-Id: I8f1cba112991b47f0951acc2a2471757a9c440bb

authored by Yureka and committed by GitHub 2503bd9a e37018c3

+10
+10
pkgs/by-name/li/libjxl/package.nix
··· 104 # Use our version of gtest 105 "-DJPEGXL_FORCE_SYSTEM_GTEST=ON" 106 107 # TODO: Update this package to enable this (overridably via an option): 108 # Viewer tools for evaluation. 109 # "-DJPEGXL_ENABLE_VIEWERS=ON" ··· 121 # the second substitution fix regex for a2x script 122 # https://github.com/libjxl/libjxl/pull/3842 123 postPatch = '' 124 substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \ 125 --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl" 126 substituteInPlace CMakeLists.txt \
··· 104 # Use our version of gtest 105 "-DJPEGXL_FORCE_SYSTEM_GTEST=ON" 106 107 + "-DJPEGXL_ENABLE_SKCMS=OFF" 108 + "-DJPEGXL_FORCE_SYSTEM_LCMS2=ON" 109 + 110 # TODO: Update this package to enable this (overridably via an option): 111 # Viewer tools for evaluation. 112 # "-DJPEGXL_ENABLE_VIEWERS=ON" ··· 124 # the second substitution fix regex for a2x script 125 # https://github.com/libjxl/libjxl/pull/3842 126 postPatch = '' 127 + # Make sure we do not accidentally build against some of the vendored dependencies 128 + # If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag 129 + ( 130 + shopt -s extglob 131 + rm -rf third_party/!(sjpeg)/ 132 + ) 133 + 134 substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \ 135 --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl" 136 substituteInPlace CMakeLists.txt \