* [bug#33888] [PATCH] gnu: Add sway.
@ 2018-12-27 15:05 Rutger Helling
2018-12-29 13:01 ` Rutger Helling
0 siblings, 1 reply; 5+ messages in thread
From: Rutger Helling @ 2018-12-27 15:05 UTC (permalink / raw)
To: 33888
[-- Attachment #1.1: Type: text/plain, Size: 262 bytes --]
Hey Guix,
these patches add Sway.
Note that with
(screen-locker-service sway "swaylock")
we should now have a native Wayland screen locker.
Supposedly this can be done without making the swaylock binary SUID,
but I've been unable to figure out how.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-wlroots.patch --]
[-- Type: text/x-patch, Size: 3237 bytes --]
From 0ea8db95fe1714ec4b27aafc418513757ab93dd0 Mon Sep 17 00:00:00 2001
From: Rutger Helling <rhelling@mykolab.com>
Date: Thu, 27 Dec 2018 15:43:41 +0100
Subject: [PATCH 1/2] gnu: Add wlroots.
* gnu/packages/wm.scm (wlroots): New variable.
---
gnu/packages/wm.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index a761bce23..b9500f8db 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -42,6 +42,7 @@
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (guix build-system haskell)
+ #:use-module (guix build-system meson)
#:use-module (guix build-system perl)
#:use-module (guix build-system python)
#:use-module (gnu packages haskell)
@@ -77,6 +78,8 @@
#:use-module (gnu packages linux)
#:use-module (gnu packages suckless)
#:use-module (gnu packages mpd)
+ #:use-module (gnu packages gl)
+ #:use-module (gnu packages video)
#:use-module (guix download)
#:use-module (guix git-download))
@@ -1094,3 +1097,49 @@ its size
customizable status bars for their desktop environment. It has built-in
functionality to display information about the most commonly used services.")
(license license:expat)))
+
+(define-public wlroots
+ (package
+ (name "wlroots")
+ (version "0.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/swaywm/wlroots.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0gfxawjlb736xl90zfv3n6zzf5n1cacgzflqi1zq1wn7wd3j6ppv"))))
+ (build-system meson-build-system)
+ (arguments
+ `(#:configure-flags '("-Dlogind-provider=elogind")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'hardcode-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "xwayland/xwayland.c"
+ (("Xwayland") (string-append (assoc-ref inputs
+ "xorg-server-xwayland")
+ "/bin/Xwayland")))
+ #t)))))
+ (native-inputs `(("elogind" ,elogind)
+ ("eudev" ,eudev)
+ ("ffmpeg" ,ffmpeg)
+ ;("libcap" ,libcap) ; FIXME: Breaks DRM backend.
+ ("libinput" ,libinput)
+ ("libpng" ,libpng)
+ ("libxkbcommon" ,libxkbcommon)
+ ("mesa" ,mesa)
+ ("pixman" ,pixman)
+ ("pkg-config" ,pkg-config)
+ ("wayland" ,wayland)
+ ("wayland-protocols" ,wayland-protocols)
+ ("xorg-server-xwayland" ,xorg-server-xwayland)))
+ (home-page "https://github.com/swaywm/wlroots")
+ (synopsis "Pluggable, composable, unopinionated modules for building a
+Wayland compositor")
+ (description "wlroots is a set of pluggable, composable, unopinionated
+modules for building a Wayland compositor.")
+ ; MIT license
+ (license license:expat)))
--
2.20.1
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-sway.patch --]
[-- Type: text/x-patch, Size: 2327 bytes --]
From ac73b2a037fb73547b5e14f5b90e1cc8383b8bad Mon Sep 17 00:00:00 2001
From: Rutger Helling <rhelling@mykolab.com>
Date: Thu, 27 Dec 2018 15:49:54 +0100
Subject: [PATCH 2/2] gnu: Add sway.
* gnu/packages/wm.scm (sway): New variable.
---
gnu/packages/wm.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index b9500f8db..0bced1bc9 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -80,6 +80,9 @@
#:use-module (gnu packages mpd)
#:use-module (gnu packages gl)
#:use-module (gnu packages video)
+ #:use-module (gnu packages gtk)
+ #:use-module (gnu packages man)
+ #:use-module (gnu packages version-control)
#:use-module (guix download)
#:use-module (guix git-download))
@@ -1143,3 +1146,39 @@ Wayland compositor")
modules for building a Wayland compositor.")
; MIT license
(license license:expat)))
+
+(define-public sway
+ (package
+ (name "sway")
+ (version "1.0-beta.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/swaywm/sway.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0f9rniwizbc3vzxdy6rc47749p6gczfbgfdy4r458134rbl551hw"))))
+ (build-system meson-build-system)
+ (native-inputs `(("cairo" ,cairo)
+ ("elogind" ,elogind)
+ ("gdk-pixbuf" ,gdk-pixbuf)
+ ("git" ,git)
+ ("json-c" ,json-c)
+ ("libcap" ,libcap)
+ ("libinput" ,libinput)
+ ("libxkbcommon" ,libxkbcommon)
+ ("linux-pam" ,linux-pam)
+ ("mesa" ,mesa)
+ ("pango" ,pango)
+ ("pkg-config" ,pkg-config)
+ ("scdoc" ,scdoc)
+ ("wayland" ,wayland)
+ ("wayland-protocols" ,wayland-protocols)
+ ("wlroots" ,wlroots)))
+ (home-page "https://github.com/swaywm/sway")
+ (synopsis "Wayland compositor compatible with i3")
+ (description "Sway is a i3-compatible Wayland compositor.")
+ ; MIT license
+ (license license:expat)))
2.20.1
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#33888] [PATCH] gnu: Add sway.
2018-12-27 15:05 [bug#33888] [PATCH] gnu: Add sway Rutger Helling
@ 2018-12-29 13:01 ` Rutger Helling
2019-03-11 19:37 ` bug#33888: " Rutger Helling
0 siblings, 1 reply; 5+ messages in thread
From: Rutger Helling @ 2018-12-29 13:01 UTC (permalink / raw)
To: 33888
[-- Attachment #1: Type: text/plain, Size: 621 bytes --]
I've been told that the Sway developers don't want this release
packaged. And it unfortunately also depends on staging, which I
missed.
Having said that, if there are no objections I'd like to merge this
once it hits 1.0 and staging is merged.
On Thu, 27 Dec 2018 16:05:03 +0100
Rutger Helling <rhelling@mykolab.com> wrote:
> Hey Guix,
>
> these patches add Sway.
>
> Note that with
> (screen-locker-service sway "swaylock")
> we should now have a native Wayland screen locker.
>
> Supposedly this can be done without making the swaylock binary SUID,
> but I've been unable to figure out how.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#33888: [PATCH] gnu: Add sway.
2018-12-29 13:01 ` Rutger Helling
@ 2019-03-11 19:37 ` Rutger Helling
2019-03-11 19:55 ` [bug#33888] " Marius Bakke
2019-03-14 4:01 ` Meiyo Peng
0 siblings, 2 replies; 5+ messages in thread
From: Rutger Helling @ 2019-03-11 19:37 UTC (permalink / raw)
To: 33888-done
[-- Attachment #1: Type: text/plain, Size: 910 bytes --]
Sway 1.0 just got released. Since this bug has been open for a very
long time and all the pieces are in place, I've gone ahead with
rebasing and merging.
On Sat, 29 Dec 2018 14:01:07 +0100
Rutger Helling <rhelling@mykolab.com> wrote:
> I've been told that the Sway developers don't want this release
> packaged. And it unfortunately also depends on staging, which I
> missed.
>
> Having said that, if there are no objections I'd like to merge this
> once it hits 1.0 and staging is merged.
>
> On Thu, 27 Dec 2018 16:05:03 +0100
> Rutger Helling <rhelling@mykolab.com> wrote:
>
> > Hey Guix,
> >
> > these patches add Sway.
> >
> > Note that with
> > (screen-locker-service sway "swaylock")
> > we should now have a native Wayland screen locker.
> >
> > Supposedly this can be done without making the swaylock binary SUID,
> > but I've been unable to figure out how.
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#33888] [PATCH] gnu: Add sway.
2019-03-11 19:37 ` bug#33888: " Rutger Helling
@ 2019-03-11 19:55 ` Marius Bakke
2019-03-14 4:01 ` Meiyo Peng
1 sibling, 0 replies; 5+ messages in thread
From: Marius Bakke @ 2019-03-11 19:55 UTC (permalink / raw)
To: Rutger Helling, 33888-done
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
Rutger Helling <rhelling@mykolab.com> writes:
> Sway 1.0 just got released. Since this bug has been open for a very
> long time and all the pieces are in place, I've gone ahead with
> rebasing and merging.
Excellent! I have used this for a while and it works great. Thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#33888] [PATCH] gnu: Add sway.
2019-03-11 19:37 ` bug#33888: " Rutger Helling
2019-03-11 19:55 ` [bug#33888] " Marius Bakke
@ 2019-03-14 4:01 ` Meiyo Peng
1 sibling, 0 replies; 5+ messages in thread
From: Meiyo Peng @ 2019-03-14 4:01 UTC (permalink / raw)
To: Rutger Helling; +Cc: 33888-done
Hi Rutger,
Rutger Helling writes:
> Sway 1.0 just got released. Since this bug has been open for a very
> long time and all the pieces are in place, I've gone ahead with
> rebasing and merging.
Cool! I will try it out.
--
Meiyo Peng
https://www.pengmeiyu.com/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-14 4:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-27 15:05 [bug#33888] [PATCH] gnu: Add sway Rutger Helling
2018-12-29 13:01 ` Rutger Helling
2019-03-11 19:37 ` bug#33888: " Rutger Helling
2019-03-11 19:55 ` [bug#33888] " Marius Bakke
2019-03-14 4:01 ` Meiyo Peng
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).