From f152afb13e9b576ee1aa2e77737bd89289411d2a Mon Sep 17 00:00:00 2001 From: Steven Keuchel Date: Thu, 28 Nov 2024 21:25:11 +0100 Subject: [PATCH] libjxl: fix broken extglob in patchPhase --- pkgs/by-name/li/libjxl/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/li/libjxl/package.nix b/pkgs/by-name/li/libjxl/package.nix index 57f4ab170faf..6211023c59d8 100644 --- a/pkgs/by-name/li/libjxl/package.nix +++ b/pkgs/by-name/li/libjxl/package.nix @@ -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"