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