Subject: [bug#71780] [PATCH v3 6/7] gnu: Add go-github-com-emersion-go-smtp-v0.18.

From: Jean SIMARD <[email-masked]>
Date: Sat, 27 Jul 2024 13:08:23 +0000

* gnu/packages/golang.scm (go-github-com-emersion-go-smtp-v0.18): New variable.

Change-Id: Ib6ea1885abba6b76d1935872b800dc7eed8ab303
---
 gnu/packages/golang.scm | 57 +++++++++++++++++++++++++----------------
 1 file changed, 35 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 046b5189db..1ab1e4e88f 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -5833,29 +5833,42 @@ (define-public go-github-com-emersion-go-smtp
 defined by RFC 5321.")
     (license license:expat)))
 
+(define-public go-github-com-emersion-go-smtp-v0.18
+  (package
+    (inherit go-github-com-emersion-go-smtp)
+    (name "go-github-com-emersion-go-smtp")
+    (version "0.18.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/emersion/go-smtp")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1d17gmz88cnfld8y1j2jsmldhvg8czbdmrjis0ls9zi7rfqlmnra"))))))
+
 (define-public go-github-com-emersion-go-sasl
-  (let ((commit "0b9dcfb154ac3d7515b08bc2691a0332800edfe9")
-        (revision "1"))
-    (package
-      (name "go-github-com-emersion-go-sasl")
-      (version (git-version "0.0.0" revision commit))
-      (source
-        (origin
-          (method git-fetch)
-          (uri (git-reference
-                (url "https://github.com/emersion/go-sasl")
-                (commit commit)))
-          (file-name (git-file-name name version))
-          (sha256
-           (base32
-            "1cbf86wkqrdinfydndgdlnayg4a5mg3d4vqra377j2sfkg7wj0hs"))))
-      (build-system go-build-system)
-      (arguments
-       (list #:import-path "github.com/emersion/go-sasl"))
-      (home-page "https://github.com/emersion/go-sasl")
-      (synopsis "SASL library written in Go")
-      (description "This package provides a SASL library written in Go.")
-      (license license:expat))))
+  (package
+    (name "go-github-com-emersion-go-sasl")
+    (version "0.0.0-20220912192320-0145f2c60ead")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/emersion/go-sasl")
+             (commit (go-version->git-ref version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "00bkl56zycs3pd1schkxx3swfjixz0lvnzdxkxx9piv99w91v2n4"))))
+    (build-system go-build-system)
+    (arguments
+     (list
+      #:import-path "github.com/emersion/go-sasl"))
+    (home-page "https://github.com/emersion/go-sasl")
+    (synopsis "SASL library written in Go")
+    (description "This package provides a SASL library written in Go.")
+    (license license:expat)))
 
 (define-public go-github-com-emersion-go-imap-idle
   (let ((commit "2704abd7050ed7f2143753554ee23affdf847bd9")
-- 
2.45.2