xdg-desktop-portal-gtk: Remove GNOME dependency

This commit is contained in:
Mikael Voss 2024-10-06 21:16:54 +02:00
parent 3ad210eefa
commit 5b32734131
No known key found for this signature in database
2 changed files with 11 additions and 1 deletions

View file

@ -344,7 +344,7 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
configPackages = [ config.programs.niri.package ]; configPackages = [ config.programs.niri.package ];
extraPortals = with pkgs; [ extraPortals = with pkgs; [
xdg-desktop-portal-gnome xdg-desktop-portal-gnome
(xdg-desktop-portal-gtk.override { buildPortalsInGnome = false; }) xdg-desktop-portal-gtk
]; ];
}; };
} }

View file

@ -369,4 +369,14 @@ in genAttrs [
# broken # broken
withDocumentation = false; withDocumentation = false;
}; };
xdg-desktop-portal-gtk = prev.xdg-desktop-portal-gtk.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "gnome-*" "gsettings-*" ];
mesonFlags = prevAttrs.mesonFlags or [ ] ++ [
(mesonEnable "wallpaper" false)
(mesonEnable "settings" false)
];
});
} }