From ffffde07176e6559f501c3e444677822f2cc2e71 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 11 May 2024 14:01:11 +0200 Subject: [PATCH] xdg-desktop-portal: add enableSystemd option --- pkgs/development/libraries/xdg-desktop-portal/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/xdg-desktop-portal/default.nix b/pkgs/development/libraries/xdg-desktop-portal/default.nix index 53a0d3b617e8..a8477e370da0 100644 --- a/pkgs/development/libraries/xdg-desktop-portal/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal/default.nix @@ -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" ];