2021-10-07 03:10:50 +02:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, fontconfig
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2022-03-15 21:32:17 +01:00
|
|
|
, gnome-desktop
|
2021-10-07 03:10:50 +02:00
|
|
|
, xdg-desktop-portal
|
|
|
|
, wayland
|
|
|
|
, gnome
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal-gnome";
|
2022-03-19 00:24:02 +01:00
|
|
|
version = "42.0.1";
|
2021-10-07 03:10:50 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
2022-03-19 00:24:02 +01:00
|
|
|
sha256 = "3+i1JFDzKDj5+eiY6Vqo36JwXOEtQ4MFVXwSi5zg4uY=";
|
2021-10-07 03:10:50 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fontconfig
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas # settings exposed by settings portal
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
2022-03-15 21:32:17 +01:00
|
|
|
gnome-desktop
|
2021-10-07 03:10:50 +02:00
|
|
|
xdg-desktop-portal
|
|
|
|
wayland # required by GTK 4
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemduserunitdir=${placeholder "out"}/lib/systemd/user"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backend implementation for xdg-desktop-portal for the GNOME desktop environment";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
};
|
|
|
|
}
|