python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / xdg-desktop-portal-gtk / default.nix
blobe54f764f9a50d46f71390da8e9828603035cdfca
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , autoreconfHook
5 , pkg-config
6 , libxml2
7 , xdg-desktop-portal
8 , gtk3
9 , gnome
10 , gnome-desktop
11 , glib
12 , wrapGAppsHook
13 , gsettings-desktop-schemas
14 , buildPortalsInGnome ? true
17 stdenv.mkDerivation rec {
18   pname = "xdg-desktop-portal-gtk";
19   version = "1.14.0";
21   src = fetchFromGitHub {
22     owner = "flatpak";
23     repo = pname;
24     rev = version;
25     sha256 = "I9xQgiE3lNb2vRodO5R1y40lqoOKzALskrVePidant4=";
26   };
28   nativeBuildInputs = [
29     autoreconfHook
30     libxml2
31     pkg-config
32     wrapGAppsHook
33     xdg-desktop-portal
34   ];
36   buildInputs = [
37     glib
38     gsettings-desktop-schemas # settings exposed by settings portal
39     gtk3
40     gnome-desktop
41     gnome.gnome-settings-daemon # schemas needed for settings api (mostly useless now that fonts were moved to g-d-s)
42   ];
44   configureFlags = if buildPortalsInGnome then [
45     "--enable-wallpaper"
46     "--enable-screenshot"
47     "--enable-screencast"
48     "--enable-background"
49     "--enable-settings"
50     "--enable-appchooser"
51   ] else [
52     # These are now enabled by default, even though we do not need them for GNOME.
53     # https://github.com/flatpak/xdg-desktop-portal-gtk/issues/355
54     "--disable-settings"
55     "--disable-appchooser"
56   ];
58   meta = with lib; {
59     description = "Desktop integration portals for sandboxed apps";
60     maintainers = with maintainers; [ jtojnar ];
61     platforms = platforms.linux;
62     license = licenses.lgpl2Plus;
63   };