diff mbox

[1/2] gnu: Add wlc.

Message ID 20160825191045.2449-1-sleep_walker@gnu.org
State New
Headers show

Commit Message

Tomáš Čech Aug. 25, 2016, 7:10 p.m. UTC
* gnu/packages/freedesktop.scm(wlc): New variable.
* gnu/packages/patches/wlc-implement-wlc_view_get_pid.patch: Add it
* gnu/local.mk: Add entry for patch above.
---
 gnu/packages/freedesktop.scm | 41 ++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 40 insertions(+), 1 deletion(-)

Comments

Alex Kost Aug. 26, 2016, 8:13 a.m. UTC | #1
Tomáš Čech (2016-08-25 22:10 +0300) wrote:

> +    (description
> +     "This is wayland compositor library used by several projects like sway,
> +orbment or Guile-WM.")

Are you sure about Guile-WM?  AFAIK it uses XCB, but not Wayland.  Here
is an excerpt from Guile-WM's readme:

4.2 Even Crazier Wish List
──────────────────────────
...
  • Build a WM on top of Wayland. That would require a Scheme Wayland
    client, which could be built along the lines of Guile XCB, since the
    Wayland projects comes with the same kind of XML spec files that XCB
    uses.
Tomáš Čech Aug. 26, 2016, 9:50 a.m. UTC | #2
On Fri, Aug 26, 2016 at 11:13:43AM +0300, Alex Kost wrote:
>Tomáš Čech (2016-08-25 22:10 +0300) wrote:
>
>> +    (description
>> +     "This is wayland compositor library used by several projects like sway,
>> +orbment or Guile-WM.")
>
>Are you sure about Guile-WM?  AFAIK it uses XCB, but not Wayland.

Thanks for the catch. I actully meant Gram.

https://github.com/emallson/gram

I'll send updated the patch.

S_W
diff mbox

Patch

diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index 67f1e1a..07a6e0b 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -27,10 +27,14 @@ 
   #:use-module (guix packages)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
+  #:use-module (gnu packages)
+  #:use-module (gnu packages gl)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages python)
+  #:use-module (gnu packages pth)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages autotools)
@@ -51,7 +55,8 @@ 
   #:use-module (gnu packages acl)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages polkit)
-  #:use-module (gnu packages databases))
+  #:use-module (gnu packages databases)
+  #:use-module (gnu packages xdisorg))
 
 (define-public xdg-utils
   (package
@@ -647,3 +652,37 @@  different sorts of messages in different formats.")
 useful for both applications which need colour management and applications that
 wish to perform colour calibration.")
     (license license:lgpl2.1+)))
+
+(define-public wlc
+  (package
+    (name "wlc")
+    (version "0.0.5")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://github.com/Cloudef/" name "/releases/download/v"
+                    version "/" name "-" version ".tar.bz2"))
+              (sha256
+               (base32
+                "0dmiklis820qzin74f16bmbz1jkjy93r5mix8cqbcqpb9f7qxahp"))))
+    (build-system cmake-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libinput" ,libinput)
+       ("libx11" ,libx11)
+       ("libxkbcommon" ,libxkbcommon)
+       ("mesa" ,mesa)
+       ("pixman" ,pixman)
+       ("pth" ,pth)
+       ("wayland" ,wayland)
+       ("xcb-util-image" ,xcb-util-image)
+       ("xcb-util-wm" ,xcb-util-wm)
+       ("xproto" ,xproto)
+       ("zlib" ,zlib)))
+    (synopsis "Wayland Compositor Library")
+    (home-page "https://github.com/Cloudef/wlc")
+    (description
+     "This is wayland compositor library used by several projects like sway,
+orbment or Guile-WM.")
+    (license license:x11)))