GNU bug report logs - #77485
[PATCH] gnu: swaynotificationcenter: Fix package

Previous Next

Package: guix-patches;

Reported by: Daniel Ziltener <dziltener <at> lyrion.ch>

Date: Thu, 3 Apr 2025 11:27:01 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniel Ziltener <dziltener <at> lyrion.ch>
Subject: bug#77485: closed (Re: [bug#77485] [PATCH] gnu: swaynotificationcenter:
 Fix package)
Date: Sun, 06 Apr 2025 18:07:03 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#77485: [PATCH] gnu: swaynotificationcenter: Fix package

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77485 <at> debbugs.gnu.org.

-- 
77485: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77485
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: Daniel Ziltener via Guix-patches via <guix-patches <at> gnu.org>
Cc: 77485-done <at> debbugs.gnu.org, Daniel Ziltener <dziltener <at> lyrion.ch>
Subject: Re: [bug#77485] [PATCH] gnu: swaynotificationcenter: Fix package
Date: Sun, 06 Apr 2025 19:06:37 +0100
[Message part 3 (text/plain, inline)]
Daniel Ziltener via Guix-patches via <guix-patches <at> gnu.org> writes:

> This fixes two hardcoded paths in swaynotificationcenter that prevented it from even starting on Guix.
>
> ---
>  gnu/packages/wm.scm | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)

Thanks for the patch, I've pushed this to master as
ed12cba2216599a35560ad4c43f2894872910f33.

Chris
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Daniel Ziltener <dziltener <at> lyrion.ch>
To: guix-patches <at> gnu.org
Cc: Daniel Ziltener <dziltener <at> lyrion.ch>
Subject: [PATCH] gnu: swaynotificationcenter: Fix package
Date: Thu,  3 Apr 2025 13:18:31 +0200
This fixes two hardcoded paths in swaynotificationcenter that prevented it from even starting on Guix.

---
 gnu/packages/wm.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5e0dabe0b4..4adc3281b3 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -2444,7 +2444,20 @@ (define-public swaynotificationcenter
               (sha256
                (base32 "0cx3ql7qb2wajck1vip9sm2a122jv9x8g2r0bnw4rrxd91yca7a9"))))
     (build-system meson-build-system)
-    (arguments (list #:configure-flags #~(list "-Dsystemd-service=false")))
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-Dsystemd-service=false")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-swaync-path
+            (lambda _
+              (substitute* "src/config.json.in"
+                (("@JSONPATH@")
+                 (string-append #$output "/etc/xdg/swaync/configSchema.json")))
+              (substitute* "src/functions.vala"
+                (("/usr/local/etc/xdg/swaync")
+                 (string-append #$output "/etc/xdg/swaync"))))))))
     (native-inputs
      (list `(,glib "bin")
            gobject-introspection
-- 
2.49.0




This bug report was last modified 46 days ago.

Previous Next


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