guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 8977d13d1563609831ef7384b2b789bf7ccb168e
Author: Morgan Smith <[email protected]>
AuthorDate: Tue Aug 12 22:38:07 2025 -0500

    gnu: Add cyrus-sasl-xoauth2.
    
    * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
    
    Change-Id: I853c8d3df1b4b4a2ea116b438e731f24a5b1fa34
    Co-authored-by: Reily Siegel <[email protected]>
    Co-authored-by: Liam Hupfer <[email protected]>
    Signed-off-by: Andreas Enge <[email protected]>
---
 gnu/packages/cyrus-sasl.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 07102467c4..0a13a95b3e 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -5,8 +5,10 @@
 ;;; Copyright © 2019 Mathieu Othacehe <[email protected]>
 ;;; Copyright © 2022 Marius Bakke <[email protected]>
 ;;; Copyright © 2022 Morgan Smith <[email protected]>
+;;; Copyright © 2022 Reily Siegel <[email protected]>
 ;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2025 Mathieu Laparie <[email protected]>
+;;; Copyright © 2025 Liam Hupfer <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -34,6 +36,7 @@
   #:use-module (guix gexp)
   #:use-module (guix packages)
   #:use-module (guix download)
+  #:use-module (guix git-download)
   #:use-module (guix build-system gnu))
 
 (define-public cyrus-sasl
@@ -90,3 +93,36 @@ server writers.")
     (license (license:non-copyleft "file://COPYING"
                                    "See COPYING in the distribution."))
     (home-page "https://cyrusimap.org/sasl/";)))
+
+(define-public cyrus-sasl-xoauth2
+  (package
+    (name "cyrus-sasl-xoauth2")
+    (version "0.2")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/moriyoshi/cyrus-sasl-xoauth2";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1py9f1mn5k5xihrk0lfrwr6723c22gjb7lmgya83ibvislm2x3wl"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list #:configure-flags #~(list (string-append "--with-cyrus-sasl="
+                                                    #$output)
+                                     "--disable-static")
+           #:phases #~(modify-phases %standard-phases
+                        (add-before 'bootstrap 'fix-autogen
+                          (lambda _
+                            ;; autogen.sh is executable but does not have a
+                            ;; shebang.
+                            (chmod "autogen.sh" #o400))))))
+    (inputs (list cyrus-sasl))
+    (native-inputs (list autoconf automake libtool))
+    (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2";)
+    (synopsis "XOAUTH2 plugin for Cyrus SASL")
+    (description "The cyrus-sasl-xoauth2 plugin adds support for XOAUTH2
+authentication to Cyrus SASL.  Install this package with the isync package to
+enable fetching mail from IMAP servers advertising XOAUTH2 support.")
+    (license license:expat)))

Reply via email to