2021-03-16 18:21:01 +00:00
|
|
|
{ fetchFromSourcehut
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-06-24 23:31:05 +00:00
|
|
|
, scdoc
|
2021-03-16 18:21:01 +00:00
|
|
|
, stdenv
|
2022-04-08 13:26:44 +00:00
|
|
|
, systemdSupport ? stdenv.isLinux, systemd
|
2021-03-16 18:21:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-24 23:31:05 +00:00
|
|
|
pname = "seatd";
|
2022-05-24 04:31:14 +00:00
|
|
|
version = "0.7.0";
|
2021-03-16 18:21:01 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~kennylevinsen";
|
|
|
|
repo = "seatd";
|
|
|
|
rev = version;
|
2022-05-24 04:31:14 +00:00
|
|
|
sha256 = "sha256-m8xoL90GI822FTgCXuVr3EejLAMUStkPKVoV7w8ayIE=";
|
2021-03-16 18:21:01 +00:00
|
|
|
};
|
|
|
|
|
2021-06-24 23:31:05 +00:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2021-03-16 18:21:01 +00:00
|
|
|
|
2021-07-02 16:44:43 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
|
2021-06-24 23:31:05 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
2021-03-16 18:21:01 +00:00
|
|
|
|
2022-04-08 13:26:44 +00:00
|
|
|
buildInputs = lib.optionals systemdSupport [ systemd ];
|
2021-06-24 23:31:05 +00:00
|
|
|
|
2022-04-08 13:26:44 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dlibseat-logind=${if systemdSupport then "systemd" else "disabled"}"
|
|
|
|
"-Dlibseat-builtin=enabled"
|
|
|
|
"-Dserver=enabled"
|
|
|
|
];
|
2021-03-16 18:21:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A universal seat management library";
|
|
|
|
changelog = "https://git.sr.ht/~kennylevinsen/seatd/refs/${version}";
|
|
|
|
homepage = "https://sr.ht/~kennylevinsen/seatd/";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ emantor ];
|
|
|
|
};
|
|
|
|
}
|