Merge pull request #160971 from a-m-joseph/swayidle-honor-systemdSupport

This commit is contained in:
Artturi 2022-03-06 06:36:09 +02:00 committed by GitHub
commit 52e51bec8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
{ lib, stdenv, fetchFromGitHub
, meson, ninja, pkg-config, scdoc, wayland-scanner
, wayland, wayland-protocols, systemd
, wayland, wayland-protocols
, systemdSupport ? stdenv.isLinux, systemd
}:
stdenv.mkDerivation rec {
@ -15,9 +16,10 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
buildInputs = [ wayland wayland-protocols systemd ];
buildInputs = [ wayland wayland-protocols ]
++ lib.optionals systemdSupport [ systemd ];
mesonFlags = [ "-Dman-pages=enabled" "-Dlogind=enabled" ];
mesonFlags = [ "-Dman-pages=enabled" "-Dlogind=${if systemdSupport then "enabled" else "disabled"}" ];
meta = with lib; {
description = "Idle management daemon for Wayland";