[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/3] gnu: Add sway.
From: |
contact . ng0 |
Subject: |
[PATCH 3/3] gnu: Add sway. |
Date: |
Tue, 31 Jan 2017 20:07:15 +0000 |
From: ng0 <address@hidden>
* 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 8d3c1ca6b..97e96f2e9 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -60,6 +60,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)
@@ -718,3 +719,58 @@ all of them. Currently supported window managers include:
"Wlc is a Wayland compositor library.")
(license (list license:expat
license:zlib))))
+
+(define-public sway
+ (package
+ (name "sway")
+ (version "0.11")
+ (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
+ "0r29r02qyw66vjn5d9bzgnr95si1n6gbd76sv028gns9r2pihk9x"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:configure-flags (list "-DCMAKE_BUILD_TYPE=Release"
+ (string-append "-DCMAKE_INSTALL_SYSCONFDIR="
+ (assoc-ref %outputs "out")
+ "/etc")
+ "-DGIT_COMMIT_HASH=0.11")
+ #: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.11.0