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