summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kmscon/default.nix
blob: f48895fc017ea0d0ba4aed77224048ff68e7a967 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ lib, stdenv
, fetchFromGitHub
, autoreconfHook
, libtsm
, systemd
, libxkbcommon
, libdrm
, libGLU, libGL
, pango
, pixman
, pkg-config
, docbook_xsl
, libxslt
}:

stdenv.mkDerivation rec {
  pname = "kmscon";
  version = "unstable-2018-09-07";

  src = fetchFromGitHub {
    owner = "Aetf";
    repo = "kmscon";
    rev = "01dd0a231e2125a40ceba5f59fd945ff29bf2cdc";
    sha256 = "0q62kjsvy2iwy8adfiygx2bfwlh83rphgxbis95ycspqidg9py87";
  };

  buildInputs = [
    libGLU libGL
    libdrm
    libtsm
    libxkbcommon
    libxslt
    pango
    pixman
    systemd
  ];

  nativeBuildInputs = [
    autoreconfHook
    docbook_xsl
    pkg-config
  ];

  configureFlags = [
    "--enable-multi-seat"
    "--disable-debug"
    "--enable-optimizations"
    "--with-renderers=bbulk,gltex,pixman"
  ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "KMS/DRM based System Console";
    homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
    license = licenses.mit;
    maintainers = with maintainers; [ omasanori ];
    platforms = platforms.linux;
  };
}