diff mbox

[2/2] gnu: Add kmscon.

Message ID 20160822135307.789-2-david@craven.ch
State New
Headers show

Commit Message

David Craven Aug. 22, 2016, 1:53 p.m. UTC
* gnu/packages/admin.scm (kmscon): New variable.
---
 gnu/packages/admin.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Comments

Danny Milosavljevic Aug. 22, 2016, 6:10 p.m. UTC | #1
How does one use this as a VT?
Leo Famulari Aug. 22, 2016, 7:34 p.m. UTC | #2
On Mon, Aug 22, 2016 at 03:53:07PM +0200, David Craven wrote:
> * gnu/packages/admin.scm (kmscon): New variable.

Same comments as the libtsm patch.
Efraim Flashner Aug. 24, 2016, 6:16 p.m. UTC | #3
On Mon, Aug 22, 2016 at 03:53:07PM +0200, David Craven wrote:
> * gnu/packages/admin.scm (kmscon): New variable.
> ---
>  gnu/packages/admin.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
> 
> diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
> index 5730b5a..a8fcc90 100644
> --- a/gnu/packages/admin.scm
> +++ b/gnu/packages/admin.scm
> @@ -43,6 +43,8 @@
>    #:use-module (gnu packages)
>    #:use-module (gnu packages base)
>    #:use-module (gnu packages cyrus-sasl)
> +  #:use-module (gnu packages freedesktop)
> +  #:use-module (gnu packages gl)
>    #:use-module (gnu packages ncurses)
>    #:use-module (gnu packages readline)
>    #:use-module (gnu packages linux)
> @@ -70,6 +72,7 @@
>    #:use-module (gnu packages libftdi)
>    #:use-module (gnu packages image)
>    #:use-module (gnu packages xorg)
> +  #:use-module (gnu packages xdisorg)
>    #:use-module (gnu packages python)
>    #:use-module (gnu packages man)
>    #:use-module (gnu packages autotools)
> @@ -1792,3 +1795,33 @@ terminal emulators.  It tries to support all common standards while keeping
>  compatibility to existing emulators like xterm, gnome-terminal, konsole, etc.")
>      (home-page "https://www.freedesktop.org/wiki/Software/libtsm")
>      (license license:expat)))
> +
> +(define-public kmscon
> +  (package
> +    (name "kmscon")
> +    (version "8")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "https://freedesktop.org/software/kmscon/releases/"
> +                    "kmscon-" version ".tar.xz"))
> +              (sha256
> +               (base32
> +                "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a"))))
> +    (build-system gnu-build-system)
> +    (native-inputs
> +     `(("pkg-config" ,pkg-config)))
> +    (inputs
> +     `(("libdrm" ,libdrm)
> +       ("libtsm" ,libtsm)
> +       ("libxkbcommon" ,libxkbcommon)
> +       ("logind" ,elogind)
> +       ("mesa" ,mesa)
> +       ("pango" ,pango)
> +       ("udev" ,eudev)))
> +    (synopsis "Simple terminal emulator")
> +    (description "Kmscon is a simple terminal emulator based on linux kernel
> +mode setting (KMS).  It is an attempt to replace the in-kernel VT implementation
> +with a userspace console.  See kmscon(1) man-page for usage information.")
> +    (home-page "https://www.freedesktop.org/wiki/Software/kmscon")
> +    (license license:expat)))
> -- 
> 2.9.0
> 

we also have terminals.scm that's a little lonely atm with 1 package :)
David Craven Aug. 24, 2016, 6:56 p.m. UTC | #4
Leo already mentioned it, and I've already pushed it... I only
realized the licensing problem (with libtsm and by extension with
kmscon) afterwards... But thanks :)
diff mbox

Patch

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 5730b5a..a8fcc90 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -43,6 +43,8 @@ 
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages cyrus-sasl)
+  #:use-module (gnu packages freedesktop)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages readline)
   #:use-module (gnu packages linux)
@@ -70,6 +72,7 @@ 
   #:use-module (gnu packages libftdi)
   #:use-module (gnu packages image)
   #:use-module (gnu packages xorg)
+  #:use-module (gnu packages xdisorg)
   #:use-module (gnu packages python)
   #:use-module (gnu packages man)
   #:use-module (gnu packages autotools)
@@ -1792,3 +1795,33 @@  terminal emulators.  It tries to support all common standards while keeping
 compatibility to existing emulators like xterm, gnome-terminal, konsole, etc.")
     (home-page "https://www.freedesktop.org/wiki/Software/libtsm")
     (license license:expat)))
+
+(define-public kmscon
+  (package
+    (name "kmscon")
+    (version "8")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://freedesktop.org/software/kmscon/releases/"
+                    "kmscon-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0axfwrp3c8f4gb67ap2sqnkn75idpiw09s35wwn6kgagvhf1rc0a"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libdrm" ,libdrm)
+       ("libtsm" ,libtsm)
+       ("libxkbcommon" ,libxkbcommon)
+       ("logind" ,elogind)
+       ("mesa" ,mesa)
+       ("pango" ,pango)
+       ("udev" ,eudev)))
+    (synopsis "Simple terminal emulator")
+    (description "Kmscon is a simple terminal emulator based on linux kernel
+mode setting (KMS).  It is an attempt to replace the in-kernel VT implementation
+with a userspace console.  See kmscon(1) man-page for usage information.")
+    (home-page "https://www.freedesktop.org/wiki/Software/kmscon")
+    (license license:expat)))