[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/11: gnu: Add weston.
From: |
David Craven |
Subject: |
11/11: gnu: Add weston. |
Date: |
Tue, 6 Sep 2016 15:53:18 +0000 (UTC) |
dvc pushed a commit to branch master
in repository guix.
commit 24e051cb5f201765dee7f1c44bf8d496f91798de
Author: David Craven <address@hidden>
Date: Wed Jul 20 13:16:49 2016 +0200
gnu: Add weston.
* gnu/packages/freedesktop.scm (weston): New variable.
---
gnu/packages/freedesktop.scm | 75 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 2032dce..84154b3 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -36,6 +36,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages autotools)
#:use-module (gnu packages gettext)
+ #:use-module (gnu packages gl)
#:use-module (gnu packages gperf)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages gtk)
@@ -49,6 +50,7 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages documentation)
#:use-module (gnu packages libffi)
+ #:use-module (gnu packages libunwind)
#:use-module (gnu packages acl)
#:use-module (gnu packages admin)
#:use-module (gnu packages polkit)
@@ -318,6 +320,79 @@ applications, X servers (rootless or fullscreen) or other
display servers.")
(home-page "https://wayland.freedesktop.org")
(license license:expat)))
+(define-public weston
+ (package
+ (name "weston")
+ (version "1.11.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://wayland.freedesktop.org/releases/"
+ "weston-" version ".tar.xz"))
+ (sha256
+ (base32
+ "09biddxw3ar797kxf9mywjkb2iwky6my39gpp51ni846y7lqdq05"))))
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("pkg-config" ,pkg-config)
+ ("xorg-server" ,xorg-server)))
+ (inputs
+ `(("cairo" ,cairo-xcb)
+ ("dbus" ,dbus)
+ ("elogind" ,elogind)
+ ("libinput" ,libinput-minimal)
+ ("libunwind" ,libunwind)
+ ("libxcursor" ,libxcursor)
+ ("libxkbcommon" ,libxkbcommon)
+ ("mesa" ,mesa)
+ ("mtdev" ,mtdev)
+ ("linux-pam" ,linux-pam)
+ ("wayland" ,wayland)
+ ("wayland-protocols" ,wayland-protocols)
+ ("xorg-server-xwayland" ,xorg-server-xwayland)))
+ (arguments
+ `(#:configure-flags
+ (list "--disable-setuid-install"
+ "--enable-systemd-login"
+ (string-append "--with-xserver-path="
+ (assoc-ref %build-inputs "xorg-server-xwayland")
+ "/bin/Xwayland"))
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'use-elogind
+ (lambda _
+ ;; Use elogind instead of systemd
+ (substitute* "configure"
+ (("libsystemd-login >= 198") "libelogind"))
+ (substitute* '("src/launcher-logind.c" "src/weston-launch.c")
+ (("#include <systemd/sd-login.h>")
+ "#include <elogind/sd-login.h>"))))
+ (add-after 'configure 'patch-confdefs.h
+ (lambda _
+ (system "echo \"#define HAVE_SYSTEMD_LOGIN_209 1\" >>
confdefs.h")))
+ (add-before 'check 'setup
+ (lambda _
+ (setenv "HOME" (getcwd))
+ (setenv "XDG_RUNTIME_DIR" (getcwd))
+ #t))
+ (add-before 'check 'start-xorg-server
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; The test suite requires a running X server.
+ (system (string-append (assoc-ref inputs "xorg-server")
+ "/bin/Xvfb :1 &"))
+ (setenv "DISPLAY" ":1")
+ #t)))))
+ (home-page "https://wayland.freedesktop.org")
+ (synopsis "Reference implementation of a Wayland compositor")
+ (description "Weston is the reference implementation of a Wayland
+compositor, and a useful compositor in its own right.
+
+A Wayland compositor allows applications to render to a shared offscreen
+buffer using OpenGL ES. The compositor then culls the hidden parts and
+composes the final output. A Wayland compositor is essentially a
+multiplexer to the KMS/DRM Linux kernel devices.")
+ (license license:expat)))
+
(define-public exempi
(package
(name "exempi")
- branch master updated (5e814f6 -> 24e051c), David Craven, 2016/09/06
- 03/11: services: Export initrc., David Craven, 2016/09/06
- 05/11: gnu: Add prefix to license imports in (gnu packages display-managers)., David Craven, 2016/09/06
- 09/11: gnu: Add cairo-xcb., David Craven, 2016/09/06
- 07/11: gnu: Add sddm., David Craven, 2016/09/06
- 02/11: activation: Allow home directories to be created under /var/lib., David Craven, 2016/09/06
- 01/11: system: vm: Remove -net user flag., David Craven, 2016/09/06
- 04/11: services: syslog: Use syslog-configuration., David Craven, 2016/09/06
- 06/11: gnu: Add greenisland., David Craven, 2016/09/06
- 10/11: gnu: Add xorg-server-xwayland., David Craven, 2016/09/06
- 11/11: gnu: Add weston.,
David Craven <=
- 08/11: services: Add sddm service., David Craven, 2016/09/06