mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Add kmscon, a kms-based replacement for kernel VTs
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>
This commit is contained in:
parent
ed9520bfb5
commit
446c144b1a
21
pkgs/development/libraries/libtsm/default.nix
Normal file
21
pkgs/development/libraries/libtsm/default.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, fetchurl, libxkbcommon, pkgconfig }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "libtsm-3";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://freedesktop.org/software/kmscon/releases/${name}.tar.xz";
|
||||||
|
sha256 = "01ygwrsxfii0pngfikgqsb4fxp8n1bbs47l7hck81h9b9bc1ah8i";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libxkbcommon pkgconfig ];
|
||||||
|
|
||||||
|
configureFlags = [ "--disable-debug" ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Terminal-emulator State Machine";
|
||||||
|
homepage = "http://www.freedesktop.org/wiki/Software/kmscon/libtsm/";
|
||||||
|
license = stdenv.lib.licenses.mit;
|
||||||
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
||||||
|
};
|
||||||
|
}
|
26
pkgs/os-specific/linux/kmscon/default.nix
Normal file
26
pkgs/os-specific/linux/kmscon/default.nix
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -5103,6 +5103,8 @@ let
|
|||||||
|
|
||||||
libtoxcore = callPackage ../development/libraries/libtoxcore { };
|
libtoxcore = callPackage ../development/libraries/libtoxcore { };
|
||||||
|
|
||||||
|
libtsm = callPackage ../development/libraries/libtsm { };
|
||||||
|
|
||||||
libtunepimp = callPackage ../development/libraries/libtunepimp { };
|
libtunepimp = callPackage ../development/libraries/libtunepimp { };
|
||||||
|
|
||||||
libtxc_dxtn = callPackage ../development/libraries/libtxc_dxtn { };
|
libtxc_dxtn = callPackage ../development/libraries/libtxc_dxtn { };
|
||||||
@ -6668,6 +6670,8 @@ let
|
|||||||
|
|
||||||
kbd = callPackage ../os-specific/linux/kbd { };
|
kbd = callPackage ../os-specific/linux/kbd { };
|
||||||
|
|
||||||
|
kmscon = callPackage ../os-specific/linux/kmscon { };
|
||||||
|
|
||||||
latencytop = callPackage ../os-specific/linux/latencytop { };
|
latencytop = callPackage ../os-specific/linux/latencytop { };
|
||||||
|
|
||||||
ldm = callPackage ../os-specific/linux/ldm { };
|
ldm = callPackage ../os-specific/linux/ldm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user