xdg-desktop-portal: make geoclue2 optional

This commit is contained in:
zseri 2022-02-11 14:25:36 +01:00
parent bf664d85b4
commit 48c3c219bd

View file

@ -18,6 +18,7 @@
, stdenv , stdenv
, substituteAll , substituteAll
, wrapGAppsHook , wrapGAppsHook
, enableGeoLocation ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -53,16 +54,19 @@ stdenv.mkDerivation rec {
dbus dbus
flatpak flatpak
fuse fuse
geoclue2
glib glib
gsettings-desktop-schemas gsettings-desktop-schemas
json-glib json-glib
libportal libportal
pipewire pipewire
] ++ lib.optionals enableGeoLocation [
geoclue2
]; ];
configureFlags = [ configureFlags = [
"--enable-installed-tests" "--enable-installed-tests"
] ++ lib.optionals (!enableGeoLocation) [
"--disable-geoclue"
]; ];
makeFlags = [ makeFlags = [