446c144b1a
Note that currently this depends on the default nixpkgs mesa and pango. It may be possible to build more limited versions that don't e.g. depend on the full X stack without limiting kmscon (which of course doesn't use X). Depends on libtsm, added in the same commit. Signed-off-by: Shea Levy <shea@shealevy.com>
27 lines
774 B
Nix
27 lines
774 B
Nix
{ stdenv, fetchurl, libtsm, systemd, libxkbcommon, libdrm, mesa, pango, pixman, pkgconfig }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "kmscon-8";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
|
sha256 = "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a";
|
|
};
|
|
|
|
buildInputs = [ libtsm systemd libxkbcommon libdrm mesa pango pixman pkgconfig ];
|
|
|
|
configureFlags = [
|
|
"--enable-multi-seat"
|
|
"--disable-debug"
|
|
"--enable-optimizations"
|
|
"--with-renderers=bbulk,gltex,pixman"
|
|
];
|
|
|
|
meta = {
|
|
description = "KMS/DRM based System Console";
|
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/";
|
|
license = stdenv.lib.licenses.mit;
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
};
|
|
}
|