2021-10-14 00:43:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, fontconfig
|
|
|
|
, glib
|
2024-09-19 14:19:46 +00:00
|
|
|
, gnome
|
|
|
|
, gnome-desktop
|
2021-10-14 00:43:12 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2024-04-21 15:54:59 +00:00
|
|
|
, libjxl
|
2022-10-30 15:09:59 +00:00
|
|
|
, librsvg
|
2024-09-19 14:19:46 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wayland
|
|
|
|
, wayland-scanner
|
2022-10-30 15:09:59 +00:00
|
|
|
, webp-pixbuf-loader
|
2024-09-19 14:19:46 +00:00
|
|
|
, wrapGAppsHook4
|
|
|
|
, xdg-desktop-portal
|
2021-10-14 00:43:12 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-10-14 00:43:12 +00:00
|
|
|
pname = "xdg-desktop-portal-gnome";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "46.2";
|
2021-10-14 00:43:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "mirror://gnome/sources/xdg-desktop-portal-gnome/${lib.versions.major finalAttrs.version}/xdg-desktop-portal-gnome-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-tcZeol6Eg1AtAzphO+bca3GIOsB/Gj5HStGAScR9FtY=";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2024-09-19 14:19:46 +00:00
|
|
|
wayland-scanner
|
2021-10-14 00:43:12 +00:00
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas # settings exposed by settings portal
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2022-03-30 09:31:56 +00:00
|
|
|
gnome-desktop
|
2021-10-14 00:43:12 +00:00
|
|
|
xdg-desktop-portal
|
|
|
|
wayland # required by GTK 4
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postInstall = ''
|
2024-04-21 15:54:59 +00:00
|
|
|
# Pull in WebP and JXL support for gnome-backgrounds.
|
2022-10-30 15:09:59 +00:00
|
|
|
# In postInstall to run before gappsWrapperArgsHook.
|
|
|
|
export GDK_PIXBUF_MODULE_FILE="${gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
|
|
|
|
extraLoaders = [
|
2024-04-21 15:54:59 +00:00
|
|
|
libjxl
|
2022-10-30 15:09:59 +00:00
|
|
|
librsvg
|
|
|
|
webp-pixbuf-loader
|
|
|
|
];
|
|
|
|
}}"
|
|
|
|
'';
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
2024-06-05 15:53:02 +00:00
|
|
|
packageName = "xdg-desktop-portal-gnome";
|
2021-10-14 00:43:12 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backend implementation for xdg-desktop-portal for the GNOME desktop environment";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome";
|
2021-10-14 00:43:12 +00:00
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
})
|