xdg-desktop-portal: add enableSystemd option

This commit is contained in:
Alyssa Ross
2024-05-19 22:08:38 +02:00
parent ad9cfa229d
commit ffffde0717
@@ -28,6 +28,7 @@
, wrapGAppsHook3
, xmlto
, enableGeoLocation ? true
, enableSystemd ? true
}:
stdenv.mkDerivation (finalAttrs: {
@@ -78,7 +79,6 @@ stdenv.mkDerivation (finalAttrs: {
flatpak
fuse3
bubblewrap
systemdMinimal # libsystemd
glib
gsettings-desktop-schemas
json-glib
@@ -95,6 +95,8 @@ stdenv.mkDerivation (finalAttrs: {
]))
] ++ lib.optionals enableGeoLocation [
geoclue2
] ++ lib.optionals enableSystemd [
systemdMinimal # libsystemd
];
nativeCheckInputs = [
@@ -109,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"
];