From 10636e54bf88166cbfb493ee09bd5fdb7f5a9e61 Mon Sep 17 00:00:00 2001 From: Adam Joseph <54836058+a-m-joseph@users.noreply.github.com> Date: Fri, 8 Apr 2022 13:26:44 +0000 Subject: [PATCH] seatd: honor systemdSupport attr (#160967) --- pkgs/applications/misc/seatd/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/seatd/default.nix b/pkgs/applications/misc/seatd/default.nix index 3149c171bdec..177476900aa9 100644 --- a/pkgs/applications/misc/seatd/default.nix +++ b/pkgs/applications/misc/seatd/default.nix @@ -5,7 +5,7 @@ , pkg-config , scdoc , stdenv -, systemd +, systemdSupport ? stdenv.isLinux, systemd }: stdenv.mkDerivation rec { @@ -25,9 +25,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ meson ninja pkg-config scdoc ]; - buildInputs = [ systemd ]; + buildInputs = lib.optionals systemdSupport [ systemd ]; - mesonFlags = [ "-Dlibseat-logind=systemd" "-Dlibseat-builtin=enabled" ]; + mesonFlags = [ + "-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}" + "-Dlibseat-builtin=enabled" + "-Dserver=enabled" + ]; meta = with lib; { description = "A universal seat management library";