mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
fetchFromSourcehut,
|
|
lib,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
scdoc,
|
|
stdenv,
|
|
systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs,
|
|
systemdLibs,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "seatd";
|
|
version = "0.9.3";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~kennylevinsen";
|
|
repo = "seatd";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-a3L/iFDeFnMGNzC46wXREmSPE+ZX1zUEPnjKPL0bT/A=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
];
|
|
|
|
depsBuildBuild = [
|
|
pkg-config
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
scdoc
|
|
];
|
|
|
|
buildInputs = lib.optionals systemdSupport [ systemdLibs ];
|
|
|
|
mesonFlags = [
|
|
"-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
|
|
"-Dlibseat-builtin=enabled"
|
|
"-Dserver=enabled"
|
|
];
|
|
|
|
passthru.tests.basic = nixosTests.seatd;
|
|
|
|
meta = {
|
|
description = "Minimal seat management daemon, and a universal seat management library";
|
|
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${finalAttrs.version}";
|
|
homepage = "https://sr.ht/~kennylevinsen/seatd/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ emantor ];
|
|
platforms = with lib.platforms; freebsd ++ linux ++ netbsd;
|
|
mainProgram = "seatd";
|
|
};
|
|
})
|