2021-03-19 17:17:44 +00:00
|
|
|
{ fetchFromSourcehut
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-06-28 23:13:55 +00:00
|
|
|
, scdoc
|
2021-03-19 17:17:44 +00:00
|
|
|
, stdenv
|
2023-02-02 18:25:31 +00:00
|
|
|
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "seatd";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.8.0";
|
2021-03-19 17:17:44 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~kennylevinsen";
|
|
|
|
repo = "seatd";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-YaR4VuY+wrzbnhER4bkwdm0rTY1OVMtixdDEhu7Lnws=";
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
depsBuildBuild = [
|
|
|
|
pkg-config
|
|
|
|
];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
scdoc
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
buildInputs = lib.optionals systemdSupport [ systemd ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
|
|
|
|
"-Dlibseat-builtin=enabled"
|
|
|
|
"-Dserver=enabled"
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2021-03-19 17:17:44 +00:00
|
|
|
description = "A universal seat management library";
|
2023-08-10 07:59:29 +00:00
|
|
|
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;
|
2021-03-19 17:17:44 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|