2019-07-22 21:08:00 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
2020-10-09 20:12:12 +01:00
|
|
|
, pkg-config
|
2019-07-22 21:08:00 +01:00
|
|
|
, libxml2
|
|
|
|
, xdg-desktop-portal
|
|
|
|
, gtk3
|
2020-02-08 06:02:23 +00:00
|
|
|
, gnome3
|
2019-07-22 21:08:00 +01:00
|
|
|
, glib
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
2017-12-31 03:01:07 +00:00
|
|
|
|
2018-12-24 11:37:10 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xdg-desktop-portal-gtk";
|
2020-10-09 20:12:12 +01:00
|
|
|
version = "1.8.0";
|
2017-12-31 03:01:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flatpak";
|
2018-12-24 11:37:10 +00:00
|
|
|
repo = pname;
|
2017-12-31 03:01:07 +00:00
|
|
|
rev = version;
|
2020-10-09 20:12:12 +01:00
|
|
|
sha256 = "0987fwsdgkcd3mh3scvg2kyg4ay1rr5w16js4pl3pavw9yhl9lbi";
|
2017-12-31 03:01:07 +00:00
|
|
|
};
|
|
|
|
|
2019-07-22 21:08:00 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
libxml2
|
2020-10-09 20:12:12 +01:00
|
|
|
pkg-config
|
2019-07-22 21:08:00 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
xdg-desktop-portal
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
2020-02-08 06:02:23 +00:00
|
|
|
gnome3.gnome-desktop
|
2020-07-16 22:49:58 +01:00
|
|
|
gnome3.gnome-settings-daemon # schemas needed for settings api (fonts, etc)
|
2019-07-22 21:08:00 +01:00
|
|
|
];
|
2017-12-31 03:01:07 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Desktop integration portals for sandboxed apps";
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
2020-10-09 20:12:12 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
2017-12-31 03:01:07 +00:00
|
|
|
};
|
|
|
|
}
|