xdg-desktop-portal: make geoclue2 optional
This commit is contained in:
parent
bf664d85b4
commit
48c3c219bd
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue