unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#53829] [PATCH] gnu: Add jj.
@ 2022-02-06 21:50 jgart via Guix-patches via
  2022-02-06 22:10 ` Maxime Devos
  2022-02-07  2:27 ` [bug#53829] [PATCH v2] " jgart via Guix-patches via
  0 siblings, 2 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-02-06 21:50 UTC (permalink / raw)
  To: 53829; +Cc: jgart

* gnu/packages/messaging.scm (jj): New variable.
---
 gnu/packages/messaging.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 768642f119..d2735f9d96 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3118,6 +3118,43 @@ (define-public matterbridge
     (home-page "https://github.com/42wim/matterbridge")
     (license license:asl2.0)))
 
+(define-public jj
+    (package
+      (name "jj")
+      (version "2")
+      (source
+       (origin
+         (method url-fetch)
+         (uri (string-append "https://23.fi/jj/jj-" version ".tar.gz"))
+         (sha256
+          (base32 "02xz2ci93bccvil5iff804mh3zr5iqkf6zx5mxgraz17xg0azlgh"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f ; There are no tests.
+         #:make-flags
+         (list (string-append "CC=" ,(cc-for-target))
+               (string-append "PREFIX=" %output))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "jj" bin)))))))
+      (native-inputs
+        (list pkg-config))
+      (inputs
+        (list glib loudmouth))
+      (home-page "https://23.fi/jj/")
+      (synopsis "FIFO based Jabber client")
+      (description
+"@command{jj} is a simple FIFO and filesystem based Jabber
+client.  @code{jj} is inspired by @code{ii} IRC client.  It is perfect
+for bots and notifications.  Interaction with jj is done by writing and
+reading files from the server directory which jj creates.")
+      (license license:expat)))
+
 (define-public pounce
   (package
     (name "pounce")
-- 
2.35.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH] gnu: Add jj.
  2022-02-06 21:50 [bug#53829] [PATCH] gnu: Add jj jgart via Guix-patches via
@ 2022-02-06 22:10 ` Maxime Devos
  2022-02-07  1:20   ` jgart via Guix-patches via
  2022-02-07  2:27 ` [bug#53829] [PATCH v2] " jgart via Guix-patches via
  1 sibling, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-02-06 22:10 UTC (permalink / raw)
  To: jgart, 53829

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]

jgart via Guix-patches via schreef op zo 06-02-2022 om 16:50 [-0500]:
> +         (list (string-append "CC=" ,(cc-for-target))
> +               (string-append "PREFIX=" %output))

%output -> #$output (put a ,#~ after #:make-flags).

Maybe likewise in 'install' (YMMV)

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH] gnu: Add jj.
  2022-02-06 22:10 ` Maxime Devos
@ 2022-02-07  1:20   ` jgart via Guix-patches via
  2022-02-07  9:56     ` Maxime Devos
  0 siblings, 1 reply; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-02-07  1:20 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 53829

On Sun, 06 Feb 2022 23:10:24 +0100 Maxime Devos <maximedevos@telenet.be> wrote:
> jgart via Guix-patches via schreef op zo 06-02-2022 om 16:50 [-0500]:
> > +         (list (string-append "CC=" ,(cc-for-target))
> > +               (string-append "PREFIX=" %output))
> 
> %output -> #$output (put a ,#~ after #:make-flags).
> 
> Maybe likewise in 'install' (YMMV)

Hi Maxime,

Thank you for the review! Could you explain the reason for this change? Is
there a mailing list thread I can read regarding the practice of using
gexps for those variables in #:make-flags. It would be much appreciated.

I'm just trying to understand it a bit better.

all best,

jgart




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH v2] gnu: Add jj.
  2022-02-06 21:50 [bug#53829] [PATCH] gnu: Add jj jgart via Guix-patches via
  2022-02-06 22:10 ` Maxime Devos
@ 2022-02-07  2:27 ` jgart via Guix-patches via
  2022-03-03 22:44   ` bug#53829: [PATCH] " Ludovic Courtès
  1 sibling, 1 reply; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-02-07  2:27 UTC (permalink / raw)
  To: 53829; +Cc: Maxime Devos, jgart

* gnu/packages/messaging.scm (jj): New variable.
---

Hi,

Here is version two with the gexps.

thanks,

jgart

 gnu/packages/messaging.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 768642f119..751b9a9766 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -3118,6 +3118,43 @@ (define-public matterbridge
     (home-page "https://github.com/42wim/matterbridge")
     (license license:asl2.0)))
 
+(define-public jj
+    (package
+      (name "jj")
+      (version "2")
+      (source
+       (origin
+         (method url-fetch)
+         (uri (string-append "https://23.fi/jj/jj-" version ".tar.gz"))
+         (sha256
+          (base32 "02xz2ci93bccvil5iff804mh3zr5iqkf6zx5mxgraz17xg0azlgh"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f ; There are no tests.
+         #:make-flags
+         ,#~(list (string-append "CC=" #$(cc-for-target))
+                  (string-append "PREFIX=" #$output))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+         (replace 'install
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "jj" bin)))))))
+      (native-inputs
+        (list pkg-config))
+      (inputs
+        (list glib loudmouth))
+      (home-page "https://23.fi/jj/")
+      (synopsis "FIFO based Jabber client")
+      (description
+"@command{jj} is a simple FIFO and filesystem based Jabber
+client.  @code{jj} is inspired by @code{ii} IRC client.  It is perfect
+for bots and notifications.  Interaction with jj is done by writing and
+reading files from the server directory which jj creates.")
+      (license license:expat)))
+
 (define-public pounce
   (package
     (name "pounce")
-- 
2.35.0





^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH] gnu: Add jj.
  2022-02-07  1:20   ` jgart via Guix-patches via
@ 2022-02-07  9:56     ` Maxime Devos
  2022-02-07 15:30       ` jgart via Guix-patches via
  0 siblings, 1 reply; 8+ messages in thread
From: Maxime Devos @ 2022-02-07  9:56 UTC (permalink / raw)
  To: jgart; +Cc: 53829

[-- Attachment #1: Type: text/plain, Size: 535 bytes --]

jgart schreef op zo 06-02-2022 om 20:20 [-0500]:
> Thank you for the review! Could you explain the reason for this change? Is
> there a mailing list thread I can read regarding the practice of using
> gexps for those variables in #:make-flags. It would be much appreciated.

It is part of the effort to remove the dependency on magic %global-
variables and input labels, see the blog post
<https://guix.gnu.org/en/blog/2021/the-big-change/>. That blog post
doesn't mention %outputs and #$output though.

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH] gnu: Add jj.
  2022-02-07  9:56     ` Maxime Devos
@ 2022-02-07 15:30       ` jgart via Guix-patches via
  0 siblings, 0 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-02-07 15:30 UTC (permalink / raw)
  To: Maxime Devos; +Cc: 53829

On Mon, 07 Feb 2022 10:56:02 +0100 Maxime Devos <maximedevos@telenet.be> wrote:
> jgart schreef op zo 06-02-2022 om 20:20 [-0500]:
> > Thank you for the review! Could you explain the reason for this change? Is
> > there a mailing list thread I can read regarding the practice of using
> > gexps for those variables in #:make-flags. It would be much appreciated.
> 
> It is part of the effort to remove the dependency on magic %global-
> variables and input labels, see the blog post
> <https://guix.gnu.org/en/blog/2021/the-big-change/>. That blog post
> doesn't mention %outputs and #$output though.

Thanks for the reference! I'll give it a read.

all best,

jgart




^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#53829: [PATCH] gnu: Add jj.
  2022-02-07  2:27 ` [bug#53829] [PATCH v2] " jgart via Guix-patches via
@ 2022-03-03 22:44   ` Ludovic Courtès
  2022-03-04  0:21     ` [bug#53829] " jgart via Guix-patches via
  0 siblings, 1 reply; 8+ messages in thread
From: Ludovic Courtès @ 2022-03-03 22:44 UTC (permalink / raw)
  To: jgart; +Cc: Maxime Devos, 53829-done

Hi,

jgart <jgart@dismail.de> skribis:

> * gnu/packages/messaging.scm (jj): New variable.

[...]

> +(define-public jj
> +    (package
> +      (name "jj")
> +      (version "2")

I passed it through ‘guix style’, …

> +      (arguments
> +       `(#:tests? #f ; There are no tests.
> +         #:make-flags
> +         ,#~(list (string-append "CC=" #$(cc-for-target))

… changed this to avoid ,#~

> +      (description

… and tweaked this.

Committed, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* [bug#53829] [PATCH] gnu: Add jj.
  2022-03-03 22:44   ` bug#53829: [PATCH] " Ludovic Courtès
@ 2022-03-04  0:21     ` jgart via Guix-patches via
  0 siblings, 0 replies; 8+ messages in thread
From: jgart via Guix-patches via @ 2022-03-04  0:21 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Maxime Devos, 53829-done

On Thu, 03 Mar 2022 23:44:13 +0100 Ludovic Courtès <ludo@gnu.org> wrote:
> I passed it through ‘guix style’, …
> 
> > +      (arguments
> > +       `(#:tests? #f ; There are no tests.
> > +         #:make-flags
> > +         ,#~(list (string-append "CC=" #$(cc-for-target))
> 
> … changed this to avoid ,#~
> 
> > +      (description
> 
> … and tweaked this.

Thank you Ludo! Much appreciated.

all best,

jgart




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-03-04  0:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-06 21:50 [bug#53829] [PATCH] gnu: Add jj jgart via Guix-patches via
2022-02-06 22:10 ` Maxime Devos
2022-02-07  1:20   ` jgart via Guix-patches via
2022-02-07  9:56     ` Maxime Devos
2022-02-07 15:30       ` jgart via Guix-patches via
2022-02-07  2:27 ` [bug#53829] [PATCH v2] " jgart via Guix-patches via
2022-03-03 22:44   ` bug#53829: [PATCH] " Ludovic Courtès
2022-03-04  0:21     ` [bug#53829] " jgart via Guix-patches via

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).