From c3038eb951ec86eab093806c346fcbf0bad9be79 Mon Sep 17 00:00:00 2001 From: ng0 Date: Sun, 11 Sep 2016 10:50:49 +0000 Subject: [PATCH 2/2] gnu: Add wlc. * gnu/packages/wm.scm (wlc): New variable. --- gnu/packages/wm.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index b784181..c52392c 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -36,9 +36,11 @@ #:use-module (guix build-system haskell) #:use-module (gnu packages compression) #:use-module (gnu packages haskell) + #:use-module (gnu packages gl) #:use-module (gnu packages base) #:use-module (gnu packages pkg-config) #:use-module (gnu packages perl) + #:use-module (gnu packages pth) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages xorg) #:use-module (gnu packages xdisorg) @@ -490,3 +492,50 @@ dynamic and extensible using the Lua programming language.") (description "Collection of C utilities") (license license:zlib)))) + +(define-public wlc + (package + (name "wlc") + (version "0.0.5") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/Cloudef/wlc/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "06w22l5igbnbdbln05f42py8q30rl3g5hh7inrv187gv0c33zqna")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags (list + "-DCMAKE_BUILD_TYPE=Upstream"))) + ;; (string-append "-DCMAKE_INSTALL_LIBDIR=" + ;; (assoc-ref %outputs "out") "/lib") + ;; (string-append "-DCMAKE_INSTALL_PREFIX=" + ;; (assoc-ref %outputs "out"))))) + (inputs + `(("pixman" ,pixman) + ("wayland" ,wayland) + ("wayland-protocols" ,wayland-protocols) + ("libxkbcommon" ,libxkbcommon) + ("eudev" ,eudev) + ("libinput" ,libinput) + ("libx11" ,libx11) ; x11-xcb, xfixes + ("libxcb" ,libxcb) + ("pth" ,pth) + ("libxcomposite" ,libxcomposite) + ("mesa" ,mesa) ; libgbm, libegl, libglesv2 + ("libdrm" ,libdrm) + ("dbus" ,dbus) + ("xcb-util-image" ,xcb-util-image) + ("xcb-util-wm" ,xcb-util-wm) + ("xproxo" ,xproto) + ("zlib" ,zlib) + ("chck" ,chck))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://github.com/Cloudef/wlc") + (synopsis "Wayland compositor library") + (description + "wlc is a Wayland compositor library.") + (license license:expat))) -- 2.10.0