8 , systemdSupport ? stdenv.isLinux, systemd
11 stdenv.mkDerivation rec {
15 src = fetchFromSourcehut {
16 owner = "~kennylevinsen";
19 sha256 = "sha256-m8xoL90GI822FTgCXuVr3EejLAMUStkPKVoV7w8ayIE=";
22 outputs = [ "bin" "out" "dev" "man" ];
24 depsBuildBuild = [ pkg-config ];
26 nativeBuildInputs = [ meson ninja pkg-config scdoc ];
28 buildInputs = lib.optionals systemdSupport [ systemd ];
31 "-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
32 "-Dlibseat-builtin=enabled"
37 description = "A universal seat management library";
38 changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${version}";
39 homepage = "https://sr.ht/~kennylevinsen/seatd/";
40 license = licenses.mit;
41 platforms = platforms.linux;
42 maintainers = with maintainers; [ emantor ];