2014-01-15 06:13:45 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libtsm
|
|
|
|
, systemd
|
|
|
|
, libxkbcommon
|
|
|
|
, libdrm
|
2018-02-24 13:12:44 +00:00
|
|
|
, libGLU_combined
|
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 {
|
|
|
|
url = "http://www.freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
|
|
|
sha256 = "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a";
|
|
|
|
};
|
|
|
|
|
2014-01-15 06:13:45 +00:00
|
|
|
buildInputs = [
|
|
|
|
libtsm
|
|
|
|
systemd
|
|
|
|
libxkbcommon
|
|
|
|
libdrm
|
2018-02-24 13:12:44 +00:00
|
|
|
libGLU_combined
|
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 20:01:58 +01: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";
|
2017-08-01 21:03:30 +01: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
|
|
|
};
|
|
|
|
}
|