seatd: honor systemdSupport attr (#160967)
This commit is contained in:
parent
db0254cfcc
commit
10636e54bf
1 changed files with 7 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue