2014-01-15 06:13:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libtsm
|
|
|
|
, systemd
|
|
|
|
, libxkbcommon
|
|
|
|
, libdrm
|
2019-11-10 16:44:34 +00:00
|
|
|
, libGLU, libGL
|
2014-01-15 06:13:45 +00:00
|
|
|
, pango
|
|
|
|
, pixman
|
|
|
|
, pkgconfig
|
|
|
|
, docbook_xsl
|
|
|
|
, libxslt
|
|
|
|
}:
|
2014-01-15 05:58:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kmscon-8";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
2014-01-15 05:58:46 +00:00
|
|
|
sha256 = "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a";
|
|
|
|
};
|
|
|
|
|
2014-01-15 06:13:45 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtsm
|
|
|
|
systemd
|
|
|
|
libxkbcommon
|
|
|
|
libdrm
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
2014-01-15 06:13:45 +00:00
|
|
|
pango
|
|
|
|
pixman
|
|
|
|
pkgconfig
|
|
|
|
docbook_xsl
|
|
|
|
libxslt
|
|
|
|
];
|
2014-01-15 05:58:46 +00:00
|
|
|
|
2017-11-16 01:47:33 +00:00
|
|
|
patches = [ ./kmscon-8-glibc-2.26.patch ];
|
|
|
|
|
2016-05-26 19:01:58 +00:00
|
|
|
# FIXME: Remove as soon as kmscon > 8 comes along.
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/libsystemd-daemon libsystemd-login/libsystemd/g' configure
|
|
|
|
'';
|
|
|
|
|
2014-01-15 05:58:46 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-multi-seat"
|
|
|
|
"--disable-debug"
|
|
|
|
"--enable-optimizations"
|
|
|
|
"--with-renderers=bbulk,gltex,pixman"
|
|
|
|
];
|
|
|
|
|
2017-11-16 01:47:33 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-01-15 05:58:46 +00:00
|
|
|
meta = {
|
|
|
|
description = "KMS/DRM based System Console";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
|
2014-01-15 05:58:46 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2014-01-15 10:45:21 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-01-15 05:58:46 +00:00
|
|
|
};
|
|
|
|
}
|