From b9947c05ca59f7bd1c53e7b0917a18b6dea2545b Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 8 Aug 2024 09:05:26 +0000 Subject: [PATCH] xdg-desktop-portal-gnome: fix cross compilation --- overlays/cross.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/overlays/cross.nix b/overlays/cross.nix index 7f72bd735..73cf5903f 100644 --- a/overlays/cross.nix +++ b/overlays/cross.nix @@ -1284,6 +1284,14 @@ in with final; { # mvToNativeInputs [ gettext glib ] prev.xdg-desktop-portal-gnome # ) # ); + xdg-desktop-portal-gnome = prev.xdg-desktop-portal-gnome.override { + # xdp-gnome uses libjxl as a gdk pixbuf loader, + # but nixpkgs' libjxl disables the pixbuf loader when cross compiling, + # so xdp-gnome fails, expecting a pixbuf loader where there is none. + # solution: disable the libjxl pixbuf loader (by replacing it with a working pixbuf, already used by xdp-gnome). + # this means no jpeg thumbnailing. + libjxl = webp-pixbuf-loader; + }; # 2024/02/27: upstreaming is blocked on hyprland # waybar = (prev.waybar.override {