2021-03-16 18:21:01 +00:00
|
|
|
{ fetchFromSourcehut
|
|
|
|
, lib
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2021-06-25 00:31:05 +01:00
|
|
|
, scdoc
|
2021-03-16 18:21:01 +00:00
|
|
|
, stdenv
|
|
|
|
, systemd
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-25 00:31:05 +01:00
|
|
|
pname = "seatd";
|
2021-10-28 21:08:42 +01:00
|
|
|
version = "0.6.3";
|
2021-03-16 18:21:01 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~kennylevinsen";
|
|
|
|
repo = "seatd";
|
|
|
|
rev = version;
|
2021-10-28 21:08:42 +01:00
|
|
|
sha256 = "sha256-LLRGi3IACqaIHExLhALnUeiPyUnlhAJzsMFE2p+QSp4=";
|
2021-03-16 18:21:01 +00:00
|
|
|
};
|
|
|
|
|
2021-06-25 00:31:05 +01:00
|
|
|
outputs = [ "bin" "out" "dev" "man" ];
|
2021-03-16 18:21:01 +00:00
|
|
|
|
2021-07-02 17:44:43 +01:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
|
2021-06-25 00:31:05 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc ];
|
2021-03-16 18:21:01 +00:00
|
|
|
|
2021-06-25 00:31:05 +01:00
|
|
|
buildInputs = [ systemd ];
|
|
|
|
|
2021-09-18 12:13:34 +01:00
|
|
|
mesonFlags = [ "-Dlibseat-logind=systemd" "-Dlibseat-builtin=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 ];
|
|
|
|
};
|
|
|
|
}
|