summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kmscon
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2014-01-15 00:58:46 -0500
committerShea Levy <shea@shealevy.com>2014-01-15 00:58:46 -0500
commit446c144b1a447c470e97db79225695806e3497b8 (patch)
tree35720c508c2848b6d514e33edf460a61c97b6061 /pkgs/os-specific/linux/kmscon
parented9520bfb51b8509ed43792279df1d717f362ec1 (diff)
downloadnixlib-446c144b1a447c470e97db79225695806e3497b8.tar
nixlib-446c144b1a447c470e97db79225695806e3497b8.tar.gz
nixlib-446c144b1a447c470e97db79225695806e3497b8.tar.bz2
nixlib-446c144b1a447c470e97db79225695806e3497b8.tar.lz
nixlib-446c144b1a447c470e97db79225695806e3497b8.tar.xz
nixlib-446c144b1a447c470e97db79225695806e3497b8.tar.zst
nixlib-446c144b1a447c470e97db79225695806e3497b8.zip
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>
Diffstat (limited to 'pkgs/os-specific/linux/kmscon')
-rw-r--r--pkgs/os-specific/linux/kmscon/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kmscon/default.nix b/pkgs/os-specific/linux/kmscon/default.nix
new file mode 100644
index 000000000000..70efb49e228b
--- /dev/null
+++ b/pkgs/os-specific/linux/kmscon/default.nix
@@ -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 ];
+  };
+}