about summary refs log tree commit diff
path: root/pkgs/development/libraries/libtsm
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/development/libraries/libtsm
parented9520bfb51b8509ed43792279df1d717f362ec1 (diff)
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/development/libraries/libtsm')
-rw-r--r--pkgs/development/libraries/libtsm/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libtsm/default.nix b/pkgs/development/libraries/libtsm/default.nix
new file mode 100644
index 0000000000000..66e1698b11d06
--- /dev/null
+++ b/pkgs/development/libraries/libtsm/default.nix
@@ -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 ];
+  };
+}