libjxl: fix broken extglob in patchPhase

This commit is contained in:
Steven Keuchel
2024-11-30 11:34:02 +01:00
committed by Alyssa Ross
parent cccce2ac65
commit f152afb13e
+3 -4
View File
@@ -126,10 +126,9 @@ stdenv.mkDerivation rec {
postPatch = ''
# Make sure we do not accidentally build against some of the vendored dependencies
# If it asks you to "run deps.sh to fetch the build dependencies", then you are probably missing a JPEGXL_FORCE_SYSTEM_* flag
(
shopt -s extglob
rm -rf third_party/!(sjpeg)/
)
shopt -s extglob
rm -rf third_party/!(sjpeg)/
shopt -u extglob
substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \
--replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl"