mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
xdg-desktop-portal: 1.4.2 → 1.6.0
* https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.6.0 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.4 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.3 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.2 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.1 * https://github.com/flatpak/xdg-desktop-portal/releases/tag/1.5.0
This commit is contained in:
parent
fefc7d8c9c
commit
f1aa8416d7
5 changed files with 19 additions and 89 deletions
|
|
@ -42,6 +42,10 @@ with lib;
|
|||
let
|
||||
cfg = config.xdg.portal;
|
||||
packages = [ pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
|
||||
joinedPortals = pkgs.symlinkJoin {
|
||||
name = "xdg-portals";
|
||||
paths = cfg.extraPortals;
|
||||
};
|
||||
|
||||
in mkIf cfg.enable {
|
||||
|
||||
|
|
@ -56,7 +60,7 @@ with lib;
|
|||
|
||||
environment.variables = {
|
||||
GTK_USE_PORTAL = mkIf cfg.gtkUsePortal "1";
|
||||
XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
|
||||
XDG_DESKTOP_PORTAL_DIR = "${joinedPortals}/share/xdg-desktop-portal/portals";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue