Commit ffffde07 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

xdg-desktop-portal: add enableSystemd option

parent ad9cfa22
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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"
  ];