summary refs log tree commit diff
path: root/pkgs/development/libraries/libseat/default.nix
blob: bdefb51b50f4e355f5b6f5cdf057adf35e2bef0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ fetchFromSourcehut
, lib
, meson
, ninja
, pkg-config
, stdenv
, systemd
}:

stdenv.mkDerivation rec {
  pname = "libseat";
  version = "0.5.0";

  src = fetchFromSourcehut {
    owner = "~kennylevinsen";
    repo = "seatd";
    rev = version;
    sha256 = "sha256-JwlJLHkRgSRqfQEhXbzuFTmhxfbwKVdLICPbTDbC9M0=";
  };

  nativeBuildInputs = [ meson ninja pkg-config ];

  buildInputs = [
    systemd
  ];

  mesonFlags = [ "-Dserver=disabled" "-Dseatd=disabled" "-Dlogind=enabled"];

  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 ];
  };
}