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-03-16 18:21:01 +00:00
|
|
|
version = "0.5.0";
|
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~kennylevinsen";
|
|
|
|
repo = "seatd";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-JwlJLHkRgSRqfQEhXbzuFTmhxfbwKVdLICPbTDbC9M0=";
|
|
|
|
};
|
|
|
|
|
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-06-25 00:34:47 +01:00
|
|
|
mesonFlags = [ "-Dlogind=enabled" "-Dbuiltin=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 ];
|
|
|
|
};
|
|
|
|
}
|