GNU bug report logs - #72452
[PATCH] add guile-swayer package

Previous Next

Package: guix-patches;

Reported by: mrh <mrh57 <at> posteo.net>

Date: Sat, 3 Aug 2024 20:33:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72452 in the body.
You can then email your comments to 72452 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 03 Aug 2024 20:33:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to mrh <mrh57 <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 03 Aug 2024 20:33:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: mrh <mrh57 <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: mrh <mrh57 <at> posteo.net>
Subject: [PATCH] add guile-swayer package
Date: Sat,  3 Aug 2024 20:31:03 +0000
guile-swayer provides guile bindings to manipulate windows via the sway wayland compositor

Change-Id: If579694d8fb20bec5f3fd542430783a25a6c155b
---
 gnu/packages/guile-xyz.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3ce4f6a8d6..5693bbde0f 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -1027,6 +1027,24 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.2.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit "9c962281f405453fb3770dd0546ef6951c9236dd")))
+       (sha256 (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description "Extensible Guile bindings for SwayWM")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: b20956651a53a8f23828fdeb6945e1a31e6997a8
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 07 Sep 2024 16:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: mrh <mrh57 <at> posteo.net>, 72452 <at> debbugs.gnu.org
Cc: mrh <mrh57 <at> posteo.net>
Subject: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Sat, 07 Sep 2024 18:15:18 +0200
Hi mrh,

A few remarks below.

On 2024-08-03 20:31, mrh wrote:

> guile-swayer provides guile bindings to manipulate windows via the sway wayland compositor
>
> Change-Id: If579694d8fb20bec5f3fd542430783a25a6c155b
> ---
>  gnu/packages/guile-xyz.scm | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
>
> diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
> index 3ce4f6a8d6..5693bbde0f 100644
> --- a/gnu/packages/guile-xyz.scm
> +++ b/gnu/packages/guile-xyz.scm
> @@ -1027,6 +1027,24 @@ (define-public guile2.2-filesystem
>      (name "guile2.2-filesystem")
>      (inputs (list guile-2.2))))
>  
> +(define-public guile-swayer
> +  (package
> +    (name "guile-swayer")
> +    (version "0.2.0")
> +    (home-page "https://github.com/ebeem/guile-swayer")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/ebeem/guile-swayer")
> +             (commit "9c962281f405453fb3770dd0546ef6951c9236dd")))
> +       (sha256 (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))

This line exceeds 79 characters, you should put base32 part on the next line.

> +    (native-inputs (list guile-3.0))
> +    (build-system guile-build-system)
> +    (synopsis "Extensible Guile bindings for SwayWM")
> +    (description "Extensible Guile bindings for SwayWM")

The description needs to be more informative. What about

"This package provides extensible Guile bindings for the Sway window
manager.  It can be used to query Sway, assign keybindings and listen to
events in Guile."

> +    (license license:expat)))
> +

Otherwise the package builds properly, I'll be happy to review that once
you send a v2.

Please also abstain from opening duplicate issues, thanks!

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 07 Sep 2024 18:19:01 GMT) Full text and rfc822 format available.

Message #11 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: mrh57 <at> posteo.net
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 72452 <at> debbugs.gnu.org
Subject: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Sat, 07 Sep 2024 18:17:54 +0000
Hi Nicolas,

Thanks for the review! I have fixed the issues in the forthcoming v2 
patch.

Best,
Alec

On 2024-09-07 12:15 pm, Nicolas Graves wrote:
> Hi mrh,
> 
> A few remarks below.
> 
> On 2024-08-03 20:31, mrh wrote:
> 
>> guile-swayer provides guile bindings to manipulate windows via the 
>> sway wayland compositor
>> 
>> Change-Id: If579694d8fb20bec5f3fd542430783a25a6c155b
>> ---
>>  gnu/packages/guile-xyz.scm | 18 ++++++++++++++++++
>>  1 file changed, 18 insertions(+)
>> 
>> diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
>> index 3ce4f6a8d6..5693bbde0f 100644
>> --- a/gnu/packages/guile-xyz.scm
>> +++ b/gnu/packages/guile-xyz.scm
>> @@ -1027,6 +1027,24 @@ (define-public guile2.2-filesystem
>>      (name "guile2.2-filesystem")
>>      (inputs (list guile-2.2))))
>> 
>> +(define-public guile-swayer
>> +  (package
>> +    (name "guile-swayer")
>> +    (version "0.2.0")
>> +    (home-page "https://github.com/ebeem/guile-swayer")
>> +    (source
>> +     (origin
>> +       (method git-fetch)
>> +       (uri (git-reference
>> +             (url "https://github.com/ebeem/guile-swayer")
>> +             (commit "9c962281f405453fb3770dd0546ef6951c9236dd")))
>> +       (sha256 (base32 
>> "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
> 
> This line exceeds 79 characters, you should put base32 part on the next 
> line.
> 
>> +    (native-inputs (list guile-3.0))
>> +    (build-system guile-build-system)
>> +    (synopsis "Extensible Guile bindings for SwayWM")
>> +    (description "Extensible Guile bindings for SwayWM")
> 
> The description needs to be more informative. What about
> 
> "This package provides extensible Guile bindings for the Sway window
> manager.  It can be used to query Sway, assign keybindings and listen 
> to
> events in Guile."
> 
>> +    (license license:expat)))
>> +
> 
> Otherwise the package builds properly, I'll be happy to review that 
> once
> you send a v2.
> 
> Please also abstain from opening duplicate issues, thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 07 Sep 2024 18:31:01 GMT) Full text and rfc822 format available.

Message #14 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: mrh <mrh57 <at> posteo.net>
To: 72452 <at> debbugs.gnu.org
Cc: Alec Barreto <mrh57 <at> posteo.net>
Subject: [PATCH v2] gnu: add guile-swayer
Date: Sat,  7 Sep 2024 18:28:57 +0000
From: Alec Barreto <mrh57 <at> posteo.net>

Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
---
 gnu/packages/guile-xyz.scm | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 6204261cd5..3a40c4f29d 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv <at> gmail.com>
 ;;; Copyright © 2024 Artyom Bologov <mail <at> aartaka.me>
 ;;; Copyright © 2024 Felix Lechner <felix.lechner <at> lease-up.com>
+;;; Copyright © 2024 Alec Barreto <mrh57 <at> posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -93,7 +94,7 @@ (define-module (gnu packages guile-xyz)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
-  #:use-module (gnu packages haskell-xyz)         ;pandoc
+  #:use-module (gnu packages haskell-xyz) ;pandoc
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages libevent)
@@ -1027,6 +1028,28 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.2.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit "9c962281f405453fb3770dd0546ef6951c9236dd")))
+       (sha256
+        (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description
+     "This package provides extensible Guile bindings for the Sway window
+manager.  It can be used to query Sway, assign keybindings and listen to
+events in Guile.")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: ed95ddeb1e58c314f2e22b4cd35986042f3e2f21
-- 
2.45.2





Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Mon, 09 Sep 2024 04:47:02 GMT) Full text and rfc822 format available.

Message #17 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 72452 <at> debbugs.gnu.org, mrh <mrh57 <at> posteo.net>
Subject: [PATCH] add guile-swayer package
Date: Mon, 09 Sep 2024 06:46:40 +0200
Some other nitpicks:

1) (commit field should rather refer to version such as
 (commit (string-append "v" version))

This makes it easier to update.

2) guix lint complains about
guile-swayer <at> 0.2.0: the source file name should contain the package name

You're missing
       (file-name (git-file-name name version))
in the origin. This makes it easier to find things in the store.

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Mon, 09 Sep 2024 16:23:02 GMT) Full text and rfc822 format available.

Message #20 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: mrh57 <at> posteo.net
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 72452 <at> debbugs.gnu.org
Subject: Re: [PATCH] add guile-swayer package
Date: Mon, 09 Sep 2024 16:21:48 +0000
Thanks again for the feedback.

> 1) (commit field should rather refer to version such as
>  (commit (string-append "v" version))

I made this change, but as =(commit version)= since there is no "v" in 
the release titles.

I think =guix lint= and =guix style= should now be happy :)




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Mon, 09 Sep 2024 16:26:01 GMT) Full text and rfc822 format available.

Message #23 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: 72452 <at> debbugs.gnu.org,
	ngraves <at> ngraves.fr
Cc: Alec Barreto <mrh57 <at> posteo.net>
Subject: [PATCH v3] gnu: add guile-swayer
Date: Mon,  9 Sep 2024 16:24:51 +0000
Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
---
 gnu/packages/guile-xyz.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3bcb0e82bb..4f560b7d73 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv <at> gmail.com>
 ;;; Copyright © 2024 Artyom Bologov <mail <at> aartaka.me>
 ;;; Copyright © 2024 Felix Lechner <felix.lechner <at> lease-up.com>
+;;; Copyright © 2024 Alec Barreto <mrh57 <at> posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -93,7 +94,7 @@ (define-module (gnu packages guile-xyz)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
-  #:use-module (gnu packages haskell-xyz)         ;pandoc
+  #:use-module (gnu packages haskell-xyz) ;pandoc
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages libevent)
@@ -1027,6 +1028,29 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.2.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description
+     "This package provides extensible Guile bindings for the Sway window
+manager.  It can be used to query Sway, assign keybindings and listen to
+events in Guile.")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: 056910ec864cb7cf3225a0c27679d94405db7dcd
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 10 Sep 2024 08:16:02 GMT) Full text and rfc822 format available.

Message #26 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: mrh57 <at> posteo.net
Cc: 72452 <at> debbugs.gnu.org
Subject: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Tue, 10 Sep 2024 10:14:57 +0200
On 2024-09-09 16:21, mrh57 <at> posteo.net wrote:

> Thanks again for the feedback.
>
>> 1) (commit field should rather refer to version such as
>>  (commit (string-append "v" version))
>
> I made this change, but as =(commit version)= since there is no "v" in 
> the release titles.

The commit here will correspond to a git tag, not a github release. I
think it should keep the "v" ;)

>
> I think =guix lint= and =guix style= should now be happy :)
>

Have you tried rebuilding it since?
>
>

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 10 Sep 2024 12:11:02 GMT) Full text and rfc822 format available.

Message #29 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: 72452 <at> debbugs.gnu.org,
	ngraves <at> ngraves.fr
Cc: Alec Barreto <mrh57 <at> posteo.net>
Subject: [PATCH v4] gnu: add guile-swayer
Date: Tue, 10 Sep 2024 12:08:52 +0000
Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
---
 gnu/packages/guile-xyz.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3bcb0e82bb..fa941eb40c 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv <at> gmail.com>
 ;;; Copyright © 2024 Artyom Bologov <mail <at> aartaka.me>
 ;;; Copyright © 2024 Felix Lechner <felix.lechner <at> lease-up.com>
+;;; Copyright © 2024 Alec Barreto <mrh57 <at> posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -93,7 +94,7 @@ (define-module (gnu packages guile-xyz)
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
-  #:use-module (gnu packages haskell-xyz)         ;pandoc
+  #:use-module (gnu packages haskell-xyz) ;pandoc
   #:use-module (gnu packages image)
   #:use-module (gnu packages imagemagick)
   #:use-module (gnu packages libevent)
@@ -1027,6 +1028,29 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.2.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description
+     "This package provides extensible Guile bindings for the Sway window
+manager.  It can be used to query Sway, assign keybindings and listen to
+events in Guile.")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: 056910ec864cb7cf3225a0c27679d94405db7dcd
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 10 Sep 2024 12:14:01 GMT) Full text and rfc822 format available.

Message #32 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: mrh57 <at> posteo.net
To: 72452 <72452 <at> debbugs.gnu.org>
Subject: Fwd: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Tue, 10 Sep 2024 12:13:40 +0000

-------- Original Message --------
Subject: Re: [bug#72452] [PATCH] add guile-swayer package
Date: 2024-09-10 8:08 am
From: mrh57 <at> posteo.net
To: Nicolas Graves <ngraves <at> ngraves.fr>

On 2024-09-10 4:14 am, Nicolas Graves wrote:
> On 2024-09-09 16:21, mrh57 <at> posteo.net wrote:
> 
>> Thanks again for the feedback.
>> 
>>> 1) (commit field should rather refer to version such as
>>>  (commit (string-append "v" version))
>> 
>> I made this change, but as =(commit version)= since there is no "v" in
>> the release titles.
> 
> The commit here will correspond to a git tag, not a github release. I
> think it should keep the "v" ;)

Ah yes makes sense, whoops!
Change made.

>> I think =guix lint= and =guix style= should now be happy :)
>> 
> 
> Have you tried rebuilding it since?

Yes it successfully builds with these changes under multiple rounds.




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 10 Sep 2024 17:24:02 GMT) Full text and rfc822 format available.

Message #35 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: control <at> debbugs.gnu.org,72452 <at> debbugs.gnu.org, mrh <mrh57 <at> posteo.net>
Subject: QA review for 72452
Date: Tue, 10 Sep 2024 19:23:03 +0200
user guix
usertag 72452 + reviewed-looks-good
thanks

Guix QA review form submission:


Items marked as checked: Lint warnings, Package builds, Commit messages, New package licenses, New package tests, New package synopsis and descriptions

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Wed, 11 Sep 2024 15:12:02 GMT) Full text and rfc822 format available.

Message #38 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: mrh57 <at> posteo.net, 72452 <72452 <at> debbugs.gnu.org>
Subject: Re: [bug#72452] Fwd: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Wed, 11 Sep 2024 17:10:53 +0200
I've forgotten to properly check the commit message, it should be:

```
gnu: Add guile-swayer.

* gnu/packages/guile-xyz.scm (guile-swayer): New variable.
```

You can use tempel/yasnippets, guix has some preconfigured commit
messages in (guix source)/etc.

Last nitpick: you can also drop the following change:

  #:use-module (gnu packages haskell-xyz)         ;pandoc


-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Wed, 11 Sep 2024 22:26:01 GMT) Full text and rfc822 format available.

Message #41 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 72452 <72452 <at> debbugs.gnu.org>
Subject: Re: [bug#72452] Fwd: Re: [bug#72452] [PATCH] add guile-swayer package
Date: Wed, 11 Sep 2024 22:25:34 +0000
Nicolas Graves <ngraves <at> ngraves.fr> writes:

> I've forgotten to properly check the commit message, it should be:
>
> ```
> gnu: Add guile-swayer.
>
> * gnu/packages/guile-xyz.scm (guile-swayer): New variable.
> ```
>
> You can use tempel/yasnippets, guix has some preconfigured commit
> messages in (guix source)/etc.
> Last nitpick: you can also drop the following change:
>
>   #:use-module (gnu packages haskell-xyz)         ;pandoc

Ah thanks, much learned for my next patch.
Changes made.




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Wed, 11 Sep 2024 22:29:02 GMT) Full text and rfc822 format available.

Message #44 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: ngraves <at> ngraves.fr,
	72452 <at> debbugs.gnu.org
Cc: Alec Barreto <mrh57 <at> posteo.net>
Subject: [PATCH v5] gnu: Add guile-swayer.
Date: Wed, 11 Sep 2024 22:27:43 +0000
* gnu/packages/guile-xyz.scm (guile-swayer): New variable.

Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
---
 gnu/packages/guile-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3bcb0e82bb..17e5a03d17 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv <at> gmail.com>
 ;;; Copyright © 2024 Artyom Bologov <mail <at> aartaka.me>
 ;;; Copyright © 2024 Felix Lechner <felix.lechner <at> lease-up.com>
+;;; Copyright © 2024 Alec Barreto <mrh57 <at> posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1027,6 +1028,29 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.2.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description
+     "This package provides extensible Guile bindings for the Sway window
+manager.  It can be used to query Sway, assign keybindings and listen to
+events in Guile.")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: 056910ec864cb7cf3225a0c27679d94405db7dcd
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Thu, 12 Sep 2024 17:13:02 GMT) Full text and rfc822 format available.

Message #47 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Alec Barreto <mrh57 <at> posteo.net>
Cc: ngraves <at> ngraves.fr, 72452 <at> debbugs.gnu.org
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Thu, 12 Sep 2024 19:12:41 +0200
Hi,

Alec Barreto <mrh57 <at> posteo.net> skribis:

> * gnu/packages/guile-xyz.scm (guile-swayer): New variable.
>
> Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12

I was about to push it but got this error:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build guile-swayer

[...]

HEAD is now at 67e3522 revert example.scm
r:sha256 hash mismatch for /gnu/store/akv9bcr9kdilw6nkzsay34vxwyw381vm-guile-swayer-0.2.0-checkout:
  expected hash: 09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss
  actual hash:   1xid45npr5v379jziidjda8mg34gabbp7kaxil1h37z67sdwky4h
hash mismatch for store item '/gnu/store/akv9bcr9kdilw6nkzsay34vxwyw381vm-guile-swayer-0.2.0-checkout'
build of /gnu/store/bijs0qa7d7b8m80b0n0ivi177ws1f17d-guile-swayer-0.2.0-checkout.drv failed
View build log at '/var/log/guix/drvs/bi/js0qa7d7b8m80b0n0ivi177ws1f17d-guile-swayer-0.2.0-checkout.drv.gz'.
cannot build derivation `/gnu/store/xl9lmk79p14karjglkxgnlpmp3805pdg-guile-swayer-0.2.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/xl9lmk79p14karjglkxgnlpmp3805pdg-guile-swayer-0.2.0.drv' failed
--8<---------------cut here---------------end--------------->8---

Could it be that the v0.2.0 tag was modified in place?

Could you send an updated patch with the updated hash once you’ve
confirmed it’s all right?

Thanks in advance!

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Fri, 13 Sep 2024 12:04:01 GMT) Full text and rfc822 format available.

Message #50 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: ngraves <at> ngraves.fr, 72452 <at> debbugs.gnu.org
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Fri, 13 Sep 2024 12:03:09 +0000
Hello!

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi,
>
> Alec Barreto <mrh57 <at> posteo.net> skribis:
>
>> * gnu/packages/guile-xyz.scm (guile-swayer): New variable.
>>
>> Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
>
> I was about to push it but got this error:
>
> --8<---------------cut here---------------start------------->8---
> $ ./pre-inst-env guix build guile-swayer
>
> [...]
>
> HEAD is now at 67e3522 revert example.scm
> r:sha256 hash mismatch for /gnu/store/akv9bcr9kdilw6nkzsay34vxwyw381vm-guile-swayer-0.2.0-checkout:
>   expected hash: 09c0143q9sm75xp1qz7a7ihdqfwqg4w8nlq0mmnivhvamww775ss
>   actual hash:   1xid45npr5v379jziidjda8mg34gabbp7kaxil1h37z67sdwky4h
> hash mismatch for store item '/gnu/store/akv9bcr9kdilw6nkzsay34vxwyw381vm-guile-swayer-0.2.0-checkout'
> build of /gnu/store/bijs0qa7d7b8m80b0n0ivi177ws1f17d-guile-swayer-0.2.0-checkout.drv failed
> View build log at '/var/log/guix/drvs/bi/js0qa7d7b8m80b0n0ivi177ws1f17d-guile-swayer-0.2.0-checkout.drv.gz'.
> cannot build derivation `/gnu/store/xl9lmk79p14karjglkxgnlpmp3805pdg-guile-swayer-0.2.0.drv': 1 dependencies couldn't be built
> guix build: error: build of `/gnu/store/xl9lmk79p14karjglkxgnlpmp3805pdg-guile-swayer-0.2.0.drv' failed
> --8<---------------cut here---------------end--------------->8---
>
> Could it be that the v0.2.0 tag was modified in place?
>
> Could you send an updated patch with the updated hash once you’ve
> confirmed it’s all right?
>
> Thanks in advance!
>
> Ludo’.

Hm sorry I'm not sure what's going on here.
The package builds fine for me as is in the patch.
However if I switch the hash in the package definition anyways I get:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix build guile-swayer

[...]

HEAD is now at 67e3522 revert example.scm
r:sha256 hash mismatch for /gnu/store/3ckiq7q6faq0q5z1iyw34iyx2wdpy8iq-guile-swayer-0.2.0-checkout:
  expected hash: 1x1d45npr5v379jziidjda8mg34gabbp7kaxil1h37z67sdwky4h
  actual hash:   1xid45npr5v379jziidjda8mg34gabbp7kaxil1h37z67sdwky4h
hash mismatch for store item '/gnu/store/3ckiq7q6faq0q5z1iyw34iyx2wdpy8iq-guile-swayer-0.2.0-checkout'
build of /gnu/store/fkwqcknwkh78ryhrxwqb0fs4ncncpa76-guile-swayer-0.2.0-checkout.drv failed
Could not find build log for '/gnu/store/fkwqcknwkh78ryhrxwqb0fs4ncncpa76-guile-swayer-0.2.0-checkout.drv'.
cannot build derivation `/gnu/store/7fwvwc4z45g8ilk9dvrdm0pf86s8bjvq-guile-swayer-0.2.0.drv': 1 dependencies couldn't be built
guix build: error: build of `/gnu/store/7fwvwc4z45g8ilk9dvrdm0pf86s8bjvq-guile-swayer-0.2.0.drv' failed
--8<---------------cut here---------------end--------------->8---

My internet is a bit spotty today and tomorrow, so ending this
while I can, but I can investigate soon.

Best,
Alec




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 14 Sep 2024 14:20:01 GMT) Full text and rfc822 format available.

Message #53 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: 72452 <72452 <at> debbugs.gnu.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>,
 Nicolas Graves <ngraves <at> ngraves.fr>
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Sat, 14 Sep 2024 14:18:43 +0000
Besides the typo in my last message, I found the mistake I made.
The original patch had (commit <commit-hash>), which contained a fix to
the guix package build process which is not in the latest release
v0.2.0.
The old 0.2.0 version won't build for bug-reasons in the code.

Should I switch the commit field back, or wait for the next version bump
which includes the fix?

Best,
Alec




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 14 Sep 2024 15:53:02 GMT) Full text and rfc822 format available.

Message #56 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Alec Barreto <mrh57 <at> posteo.net>, 72452 <72452 <at> debbugs.gnu.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Sat, 14 Sep 2024 17:52:17 +0200
On 2024-09-14 14:18, Alec Barreto wrote:

> Besides the typo in my last message, I found the mistake I made.
> The original patch had (commit <commit-hash>), which contained a fix to
> the guix package build process which is not in the latest release
> v0.2.0.
> The old 0.2.0 version won't build for bug-reasons in the code.
>
> Should I switch the commit field back, or wait for the next version bump
> which includes the fix?

If you want to pick a specific commit, you can do something like this

  (let ((commit [commit])
        (version "0.2.0")
        (revision "0"))
    (package
      (name [name])
      (version (git-version version revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                       (url [url])
                       (commit commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  ""))))


This makes it easier to upgrade to another given commit if necessary.

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Sat, 14 Sep 2024 18:24:02 GMT) Full text and rfc822 format available.

Message #59 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: 72452 <72452 <at> debbugs.gnu.org>, Nicolas Graves <ngraves <at> ngraves.fr>
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Sat, 14 Sep 2024 18:23:17 +0000
Nicolas Graves <ngraves <at> ngraves.fr> writes:

> If you want to pick a specific commit, you can do something like this
>
>   (let ((commit [commit])
>         (version "0.2.0")
>         (revision "0"))
>     (package
>       (name [name])
>       (version (git-version version revision commit))
>       (source (origin
>                 (method git-fetch)
>                 (uri (git-reference
>                        (url [url])
>                        (commit commit)))
>                 (file-name (git-file-name name version))
>                 (sha256
>                  (base32
>                   ""))))
>
>
> This makes it easier to upgrade to another given commit if necessary.

Thanks!
Funnily v0.3.0 was just released right after your message.
However it introduces a new (minor) issue.

There is a =manifest.scm= file in the project root which was for
building the program with guix since it wasn't (isn't) yet upstream. 
But now with the new 0.3.0 version the =guile-build-system= tries to
compile the =manifest.scm= as part of the program, causing build
failure.

The project itself could create a =make= file and the package definiton
could be switched to =gnu-build-system=.

Alternatively, since the manifest is arguably obsolete if this package
becomes upstreamed, the manifest can simply be removed.

We can wait for one of those situations, or just package it now in the
manner you suggested and pin the commit to where the package builds
(but still updating to  v0.3.0?)

Best,
Alec




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Mon, 16 Sep 2024 19:51:02 GMT) Full text and rfc822 format available.

Message #62 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Alec Barreto <mrh57 <at> posteo.net>, 72452 <72452 <at> debbugs.gnu.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Mon, 16 Sep 2024 21:49:45 +0200
On 2024-09-14 18:23, Alec Barreto wrote:

> Thanks!
> Funnily v0.3.0 was just released right after your message.

I've seen that indeed ;)

> Alternatively, since the manifest is arguably obsolete if this package
> becomes upstreamed, the manifest can simply be removed.
>
> We can wait for one of those situations, or just package it now in the
> manner you suggested and pin the commit to where the package builds
> (but still updating to  v0.3.0?)

You could add a snippet in the origin to remove the manifest.scm file,
something like that should be enough :

(snippet '(delete-file "manifest.scm"))

>
> Best,
> Alec
>
>
>

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 17 Sep 2024 00:52:02 GMT) Full text and rfc822 format available.

Message #65 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: Nicolas Graves <ngraves <at> ngraves.fr>, 72452 <72452 <at> debbugs.gnu.org>
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: Re: [bug#72452] [PATCH v5] gnu: Add guile-swayer.
Date: Tue, 17 Sep 2024 00:51:10 +0000
Nicolas Graves <ngraves <at> ngraves.fr> writes:

> You could add a snippet in the origin to remove the manifest.scm file,
> something like that should be enough :
>
> (snippet '(delete-file "manifest.scm"))
>
Good call!
Change made, linter happy and package building successfully.
Sending v6.




Information forwarded to guix-patches <at> gnu.org:
bug#72452; Package guix-patches. (Tue, 17 Sep 2024 00:56:01 GMT) Full text and rfc822 format available.

Message #68 received at 72452 <at> debbugs.gnu.org (full text, mbox):

From: Alec Barreto <mrh57 <at> posteo.net>
To: 72452 <at> debbugs.gnu.org,
	ngraves <at> ngraves.fr
Cc: Alec Barreto <mrh57 <at> posteo.net>
Subject: [PATCH v6] gnu: Add guile-swayer.
Date: Tue, 17 Sep 2024 00:54:25 +0000
* gnu/packages/guile-xyz.scm (guile-swayer): New variable.

Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12
---
 gnu/packages/guile-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 3bcb0e82bb..68a42098ef 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -50,6 +50,7 @@
 ;;; Copyright © 2024 Ilya Chernyshov <ichernyshovvv <at> gmail.com>
 ;;; Copyright © 2024 Artyom Bologov <mail <at> aartaka.me>
 ;;; Copyright © 2024 Felix Lechner <felix.lechner <at> lease-up.com>
+;;; Copyright © 2024 Alec Barreto <mrh57 <at> posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1027,6 +1028,30 @@ (define-public guile2.2-filesystem
     (name "guile2.2-filesystem")
     (inputs (list guile-2.2))))
 
+(define-public guile-swayer
+  (package
+    (name "guile-swayer")
+    (version "0.3.0")
+    (home-page "https://github.com/ebeem/guile-swayer")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ebeem/guile-swayer")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (snippet '(delete-file "manifest.scm"))
+       (sha256
+        (base32 "16npa337rp0s9rg4fc749b1nq6kfxj77pdd1qfh9xdrb1n0w7awi"))))
+    (native-inputs (list guile-3.0))
+    (build-system guile-build-system)
+    (synopsis "Extensible Guile bindings for SwayWM")
+    (description
+     "This package provides extensible Guile bindings for the Sway window
+manager.  It can be used to query Sway, assign keybindings and listen to
+events in Guile.")
+    (license license:expat)))
+
 (define-public guile-syntax-highlight
   (package
     (name "guile-syntax-highlight")

base-commit: 056910ec864cb7cf3225a0c27679d94405db7dcd
-- 
2.46.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 19 Sep 2024 10:49:01 GMT) Full text and rfc822 format available.

Notification sent to mrh <mrh57 <at> posteo.net>:
bug acknowledged by developer. (Thu, 19 Sep 2024 10:49:02 GMT) Full text and rfc822 format available.

Message #73 received at 72452-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Alec Barreto <mrh57 <at> posteo.net>
Cc: 72452-done <at> debbugs.gnu.org, ngraves <at> ngraves.fr
Subject: Re: [bug#72452] [PATCH v6] gnu: Add guile-swayer.
Date: Thu, 19 Sep 2024 12:47:46 +0200
Alec Barreto <mrh57 <at> posteo.net> skribis:

> * gnu/packages/guile-xyz.scm (guile-swayer): New variable.
>
> Change-Id: Ibd3817842e36fa35a3f1ecc09288549c10fd0d12

Applied, thanks!




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 17 Oct 2024 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 245 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.