mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ stdenv
|
|
, fetchurl
|
|
, libtsm
|
|
, systemd
|
|
, libxkbcommon
|
|
, libdrm
|
|
, libGLU_combined
|
|
, pango
|
|
, pixman
|
|
, pkgconfig
|
|
, docbook_xsl
|
|
, libxslt
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "kmscon-8";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
|
sha256 = "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a";
|
|
};
|
|
|
|
buildInputs = [
|
|
libtsm
|
|
systemd
|
|
libxkbcommon
|
|
libdrm
|
|
libGLU_combined
|
|
pango
|
|
pixman
|
|
pkgconfig
|
|
docbook_xsl
|
|
libxslt
|
|
];
|
|
|
|
patches = [ ./kmscon-8-glibc-2.26.patch ];
|
|
|
|
# FIXME: Remove as soon as kmscon > 8 comes along.
|
|
postPatch = ''
|
|
sed -i -e 's/libsystemd-daemon libsystemd-login/libsystemd/g' configure
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-multi-seat"
|
|
"--disable-debug"
|
|
"--enable-optimizations"
|
|
"--with-renderers=bbulk,gltex,pixman"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "KMS/DRM based System Console";
|
|
homepage = http://www.freedesktop.org/wiki/Software/kmscon/;
|
|
license = stdenv.lib.licenses.mit;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
};
|
|
}
|