From c923bd7f78a9b8850b09430a4dd375e2a8f0feaf Mon Sep 17 00:00:00 2001 From: ng0
Date: Sun, 11 Sep 2016 10:50:49 +0000 Subject: [PATCH 2/3] gnu: Add wlc. * gnu/packages/wm.scm (wlc): New variable. --- gnu/packages/wm.scm | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 7d0b29aea..e126d6f03 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -42,9 +42,11 @@ #:use-module (guix build-system python) #: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) @@ -785,3 +787,54 @@ It is inspired by Xmonad and dwm. Its major features include: (description "Collection of C utilities") (license license:zlib)))) + +(define-public wlc + (package + (name "wlc") + (version "0.0.9") + (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 + "1d9albrwb17mqrqfcc6gag40f5yvc7qrs3p71l3ip80fwn8j6zyh")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags (list "-DCMAKE_BUILD_TYPE=Upstream" + "-DWLC_BUILD_EXAMPLES=OFF" + "-DWLC_BUILD_TESTS=OFF"))) + (inputs + `(("pixman" ,pixman) + ("wayland" ,wayland) + ("libxkbcommon" ,libxkbcommon) + ("eudev" ,eudev) + ("libdrm" ,libdrm) + ("libinput" ,libinput) + ("libx11" ,libx11) ; x11-xcb, xfixes + ("libxcb" ,libxcb) + ("libxkbcommon" ,libxkbcommon) + ("xkeyboard-config" ,xkeyboard-config) + ("libxfixes" ,libxfixes) + ("pth" ,pth) + ("libxcomposite" ,libxcomposite) + ("mesa" ,mesa) ; libgbm, libegl, libglesv2 + ("dbus" ,dbus) + ("xcb-util-image" ,xcb-util-image) + ("xcb-util-wm" ,xcb-util-wm) + ("xproxo" ,xproto) + ("xorg-server-xwayland" ,xorg-server-xwayland) + ("zlib" ,zlib) + ("elogind" ,elogind) + ("chck" ,chck))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("wayland-protocols" ,wayland-protocols))) + (home-page "https://github.com/Cloudef/wlc") + (synopsis "Helper library for Wayland compositors") + (description + "Wlc is a Wayland compositor library.") + (license (list license:expat + license:zlib)))) -- 2.13.0