From mboxrd@z Thu Jan 1 00:00:00 1970 From: contact.ng0@cryptolab.net Subject: [PATCH 3/3] gnu: Add sway. Date: Tue, 31 Jan 2017 20:07:15 +0000 Message-ID: <20170131200715.17817-4-contact.ng0@cryptolab.net> References: <20170131200715.17817-1-contact.ng0@cryptolab.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYegt-00073U-O9 for guix-devel@gnu.org; Tue, 31 Jan 2017 15:06:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYegs-0000j1-K2 for guix-devel@gnu.org; Tue, 31 Jan 2017 15:06:11 -0500 Received: from aibo.runbox.com ([91.220.196.211]:58634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYegs-0000is-CO for guix-devel@gnu.org; Tue, 31 Jan 2017 15:06:10 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cYegr-0001Ai-6v for guix-devel@gnu.org; Tue, 31 Jan 2017 21:06:09 +0100 In-Reply-To: <20170131200715.17817-1-contact.ng0@cryptolab.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * 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