2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2019-07-22 22:08:00 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2020-10-09 21:12:12 +02:00
|
|
|
, pkg-config
|
2019-07-22 22:08:00 +02:00
|
|
|
, libxml2
|
|
|
|
, xdg-desktop-portal
|
|
|
|
, gtk3
|
2021-05-07 23:18:14 +02:00
|
|
|
, gnome
|
2019-07-22 22:08:00 +02:00
|
|
|
, glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2017-12-31 04:01:07 +01:00
|
|
|
|
2018-12-24 12:37:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal-gtk";
|
2020-10-09 21:12:12 +02:00
|
|
|
version = "1.8.0";
|
2017-12-31 04:01:07 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flatpak";
|
2018-12-24 12:37:10 +01:00
|
|
|
repo = pname;
|
2017-12-31 04:01:07 +01:00
|
|
|
rev = version;
|
2020-10-09 21:12:12 +02:00
|
|
|
sha256 = "0987fwsdgkcd3mh3scvg2kyg4ay1rr5w16js4pl3pavw9yhl9lbi";
|
2017-12-31 04:01:07 +01:00
|
|
|
};
|
|
|
|
|
2019-07-22 22:08:00 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
libxml2
|
2020-10-09 21:12:12 +02:00
|
|
|
pkg-config
|
2019-07-22 22:08:00 +02:00
|
|
|
wrapGAppsHook
|
|
|
|
xdg-desktop-portal
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
2021-04-16 02:11:24 +02:00
|
|
|
gsettings-desktop-schemas # settings exposed by settings portal
|
2019-07-22 22:08:00 +02:00
|
|
|
gtk3
|
2021-05-07 23:18:14 +02:00
|
|
|
gnome.gnome-desktop
|
|
|
|
gnome.gnome-settings-daemon # schemas needed for settings api (mostly useless now that fonts were moved to g-d-s)
|
2019-07-22 22:08:00 +02:00
|
|
|
];
|
2017-12-31 04:01:07 +01:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2017-12-31 04:01:07 +01:00
|
|
|
description = "Desktop integration portals for sandboxed apps";
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
2020-10-09 21:12:12 +02:00
|
|
|
license = licenses.lgpl2Plus;
|
2017-12-31 04:01:07 +01:00
|
|
|
};
|
|
|
|
}
|