8 , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
12 stdenv.mkDerivation (finalAttrs: {
16 src = fetchFromSourcehut {
17 owner = "~kennylevinsen";
19 rev = finalAttrs.version;
20 hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
23 outputs = [ "bin" "out" "dev" "man" ];
36 buildInputs = lib.optionals systemdSupport [ systemd ];
39 "-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
40 "-Dlibseat-builtin=enabled"
44 passthru.tests.basic = nixosTests.seatd;
47 description = "Minimal seat management daemon, and a universal seat management library";
48 changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}";
49 homepage = "https://sr.ht/~kennylevinsen/seatd/";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ emantor ];
52 platforms = with lib.platforms; freebsd ++ linux ++ netbsd;
53 mainProgram = "seatd";