Skip to content

Commit

Permalink
seatd: honor systemdSupport attr (NixOS#160967)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Joseph authored Apr 8, 2022
1 parent db0254c commit 10636e5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/applications/misc/seatd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, pkg-config
, scdoc
, stdenv
, systemd
, systemdSupport ? stdenv.isLinux, systemd
}:

stdenv.mkDerivation rec {
Expand All @@ -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";
Expand Down

0 comments on commit 10636e5

Please sign in to comment.