GNU bug report logs - #47015
[PATCH] gnu: Add go-gitlab.com-shackra-goimapnotify

Previous Next

Package: guix-patches;

Reported by: Benoit Joly <benoit <at> benoitj.ca>

Date: Tue, 9 Mar 2021 05:55:02 UTC

Severity: normal

Tags: patch

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

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 47015 in the body.
You can then email your comments to 47015 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#47015; Package guix-patches. (Tue, 09 Mar 2021 05:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Benoit Joly <benoit <at> benoitj.ca>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 09 Mar 2021 05:55:02 GMT) Full text and rfc822 format available.

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

From: Benoit Joly <benoit <at> benoitj.ca>
To: guix-patches <at> gnu.org
Cc: Benoit Joly <benoit <at> benoitj.ca>
Subject: [PATCH] gnu: Add go-gitlab.com-shackra-goimapnotify
Date: Tue,  9 Mar 2021 00:27:55 -0500
* gnu/packages/mail.scm (go-gitlab.com-shackra-goimapnotify): New
  variable.
---
 gnu/packages/mail.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index d21c0e204d..5e88c87dd9 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2020 B. Wilson <elaexuotee <at> wilsonb.com>
 ;;; Copyright © 2020 divoplade <d <at> divoplade.fr>
 ;;; Copyright © 2021 Xinglu Chen <public <at> yoctocell.xyz>
+;;; Copyright © 2021 Benoit Joly <benoit <at> benoitj.ca>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -87,6 +88,7 @@
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages ghostscript)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages groff)
@@ -154,6 +156,7 @@
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix build-system go)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system guile)
   #:use-module (guix build-system perl)
@@ -4221,3 +4224,33 @@ black lists.  Each message is analysed by Rspamd and given a spam
 score.")
     (home-page "https://www.rspamd.com/")
     (license license:asl2.0)))
+
+(define-public go-gitlab.com-shackra-goimapnotify
+  (let ((commit "832bc7112db9b28e28d69e90b91ea6c005244c9b")
+        (revision "0"))
+    (package
+      (name "go-gitlab.com-shackra-goimapnotify")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://gitlab.com/shackra/goimapnotify")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1h27kshx4vwl5k6vc2szsq3d701fzs4gczjypz907f8hj0lrnjmy"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:import-path "gitlab.com/shackra/goimapnotify"))
+      (propagated-inputs
+       `(("go-github-com-emersion-go-imap" ,go-github-com-emersion-go-imap)
+         ("go-github-com-emersion-go-imap-idle" ,go-github-com-emersion-go-imap-idle)
+         ("go-github-com-emersion-go-sasl" ,go-github-com-emersion-go-sasl)
+         ("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus)
+         ("go-golang-org-x-text" ,go-golang-org-x-text)))
+      (synopsis "Execute scripts on IMAP mailbox changes.")
+      (description
+       "Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version.")
+      (home-page "https://gitlab.com/shackra/goimapnotify")
+      (license license:gpl3+))))
-- 
2.30.1





Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Thu, 25 Mar 2021 17:24:01 GMT) Full text and rfc822 format available.

Notification sent to Benoit Joly <benoit <at> benoitj.ca>:
bug acknowledged by developer. (Thu, 25 Mar 2021 17:24:02 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Benoit Joly <benoit <at> benoitj.ca>
Cc: 47015-done <at> debbugs.gnu.org
Subject: Re: [bug#47015] [PATCH] gnu: Add go-gitlab.com-shackra-goimapnotify
Date: Thu, 25 Mar 2021 17:23:17 +0000
[Message part 1 (text/plain, inline)]
Benoit Joly <benoit <at> benoitj.ca> writes:

> * gnu/packages/mail.scm (go-gitlab.com-shackra-goimapnotify): New
>   variable.
> ---
>  gnu/packages/mail.scm | 33 +++++++++++++++++++++++++++++++++
>  1 file changed, 33 insertions(+)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index d21c0e204d..5e88c87dd9 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -41,6 +41,7 @@
>  ;;; Copyright © 2020 B. Wilson <elaexuotee <at> wilsonb.com>
>  ;;; Copyright © 2020 divoplade <d <at> divoplade.fr>
>  ;;; Copyright © 2021 Xinglu Chen <public <at> yoctocell.xyz>
> +;;; Copyright © 2021 Benoit Joly <benoit <at> benoitj.ca>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -87,6 +88,7 @@
>    #:use-module (gnu packages gettext)
>    #:use-module (gnu packages ghostscript)
>    #:use-module (gnu packages glib)
> +  #:use-module (gnu packages golang)
>    #:use-module (gnu packages gnome)
>    #:use-module (gnu packages gnupg)
>    #:use-module (gnu packages groff)
> @@ -154,6 +156,7 @@
>    #:use-module (guix utils)
>    #:use-module (guix build-system cmake)
>    #:use-module (guix build-system glib-or-gtk)
> +  #:use-module (guix build-system go)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system guile)
>    #:use-module (guix build-system perl)
> @@ -4221,3 +4224,33 @@ black lists.  Each message is analysed by Rspamd and given a spam
>  score.")
>      (home-page "https://www.rspamd.com/")
>      (license license:asl2.0)))
> +
> +(define-public go-gitlab.com-shackra-goimapnotify
> +  (let ((commit "832bc7112db9b28e28d69e90b91ea6c005244c9b")
> +        (revision "0"))
> +    (package
> +      (name "go-gitlab.com-shackra-goimapnotify")
> +      (version (git-version "0.0.0" revision commit))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url "https://gitlab.com/shackra/goimapnotify")
> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> +                  "1h27kshx4vwl5k6vc2szsq3d701fzs4gczjypz907f8hj0lrnjmy"))))
> +      (build-system go-build-system)
> +      (arguments
> +       `(#:import-path "gitlab.com/shackra/goimapnotify"))
> +      (propagated-inputs
> +       `(("go-github-com-emersion-go-imap" ,go-github-com-emersion-go-imap)
> +         ("go-github-com-emersion-go-imap-idle" ,go-github-com-emersion-go-imap-idle)
> +         ("go-github-com-emersion-go-sasl" ,go-github-com-emersion-go-sasl)
> +         ("go-github-com-sirupsen-logrus" ,go-github-com-sirupsen-logrus)
> +         ("go-golang-org-x-text" ,go-golang-org-x-text)))
> +      (synopsis "Execute scripts on IMAP mailbox changes.")
> +      (description
> +       "Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version.")
> +      (home-page "https://gitlab.com/shackra/goimapnotify")
> +      (license license:gpl3+))))


Hi Benoit,

I've pushed this to the master branch as
af3bf6b481b1cd134c02fecc9dc221bd045e65f8.

I made a few small changes, I moved the definition up in the file, to
avoid merge conflicts at the bottom. I also solved a lint warning about
a long line.

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Apr 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 4 days ago.

Previous Next


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