Commit 744ab7a5 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

gcr_4: add systemdSupport option

Since 7f2a6f17 ("xdg-desktop-portal-gtk: Enable all default
portals unconditionally"), building gcr_4 is necessary to build
xdg-desktop-portal-gtk, but it wasn't possible for systems that can't
use systemd.

I've called the option "systemdSupport" for consistency with gcr (3)'s
equivalent option.
parent 4b2dbd45
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
, gnome
, python3
, shared-mime-info
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd
}:

stdenv.mkDerivation rec {
@@ -56,8 +57,9 @@ stdenv.mkDerivation rec {
    pango
    libsecret
    openssh
    systemd
    gtk4
  ] ++ lib.optionals systemdSupport [
    systemd
  ];

  propagatedBuildInputs = [
@@ -74,6 +76,7 @@ stdenv.mkDerivation rec {
    # https://github.com/NixOS/nixpkgs/issues/140824
    "-Dssh_agent=false"
    "-Dgpg_path=${lib.getBin gnupg}/bin/gpg"
    (lib.mesonEnable "systemd" systemdSupport)
  ];

  doCheck = false; # fails 21 out of 603 tests, needs dbus daemon