diff options
Diffstat (limited to 'pkgs/development/libraries/xdg-desktop-portal/default.nix')
-rw-r--r-- | pkgs/development/libraries/xdg-desktop-portal/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/xdg-desktop-portal/default.nix b/pkgs/development/libraries/xdg-desktop-portal/default.nix index 626c40f3bb336..a8477e370da0e 100644 --- a/pkgs/development/libraries/xdg-desktop-portal/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal/default.nix @@ -20,13 +20,15 @@ , pipewire , gdk-pixbuf , librsvg +, gobject-introspection , python3 , pkg-config , stdenv , runCommand -, wrapGAppsHook +, wrapGAppsHook3 , xmlto , enableGeoLocation ? true +, enableSystemd ? true }: stdenv.mkDerivation (finalAttrs: { @@ -69,7 +71,7 @@ stdenv.mkDerivation (finalAttrs: { meson ninja pkg-config - wrapGAppsHook + wrapGAppsHook3 xmlto ]; @@ -77,7 +79,6 @@ stdenv.mkDerivation (finalAttrs: { flatpak fuse3 bubblewrap - systemdMinimal # libsystemd glib gsettings-desktop-schemas json-glib @@ -94,9 +95,12 @@ stdenv.mkDerivation (finalAttrs: { ])) ] ++ lib.optionals enableGeoLocation [ geoclue2 + ] ++ lib.optionals enableSystemd [ + systemdMinimal # libsystemd ]; nativeCheckInputs = [ + gobject-introspection python3.pkgs.pytest python3.pkgs.python-dbusmock python3.pkgs.pygobject3 @@ -107,6 +111,7 @@ stdenv.mkDerivation (finalAttrs: { "--sysconfdir=/etc" "-Dinstalled-tests=true" "-Dinstalled_test_prefix=${placeholder "installedTests"}" + (lib.mesonEnable "systemd" enableSystemd) ] ++ lib.optionals (!enableGeoLocation) [ "-Dgeoclue=disabled" ]; |