From 252c9fb43c1b987d86ef12885455461b850a6ff8 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 19 Jan 2017 13:58:36 +0000 Subject: [PATCH 3/3] gnu: Add sway. * gnu/packages/wm.scm (sway): New variable. --- gnu/packages/wm.scm | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index e126d6f03..0425e0af3 100644 --- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -62,6 +62,7 @@ #:use-module (gnu packages fribidi) #:use-module (gnu packages maths) #:use-module (gnu packages valgrind) + #:use-module (gnu packages video) #:use-module (gnu packages web) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) @@ -838,3 +839,58 @@ It is inspired by Xmonad and dwm. Its major features include: "Wlc is a Wayland compositor library.") (license (list license:expat license:zlib)))) + +(define-public sway + (package + (name "sway") + (version "0.13.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/SirCmpwn/sway/archive/" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0zbzlxb48l8djm164n5cp0wvywlg0w4xs7iqk6zpf9yr52fhr8jn")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags (list "-DCMAKE_BUILD_TYPE=Release" + (string-append "-DCMAKE_INSTALL_SYSCONFDIR=" + (assoc-ref %outputs "out") + "/etc") + (string-append "-DSWAY_VERSION=0.13.0")) + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-clags + (lambda _ + (substitute* "CMakeLists.txt" + (("Werror") "")) + #t))))) + (inputs + `(("pixman" ,pixman) + ("wayland" ,wayland) + ("xorg-server-xwayland" ,xorg-server-xwayland) + ("wlc" ,wlc) + ("libcap" ,libcap) + ("pcre" ,pcre) + ("json-c" ,json-c) + ("pango" ,pango) + ("cairo" ,cairo) + ("gdk-pixbuf" ,gdk-pixbuf) + ("linux-pam" ,linux-pam) + ("imagemagick" ,imagemagick) + ("ffmpeg" ,ffmpeg) + ("libinput" ,libinput) + ("libxkbcommon" ,libxkbcommon) + ("elogind" ,elogind))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("asciidoc" ,asciidoc))) + (home-page "http://swaywm.org") + (synopsis "i3 compatible Wayland window manager") + (description + "Sway is a drop-in replacement for the i3 window manager, but for +Wayland instead of X11. It works with your existing i3 configuration and +supports most of i3's features, and a few extras.") + (license license:expat))) -- 2.13.0