gnu: Add cyrus-sasl-xoauth2.

* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.

Change-Id: I853c8d3df1b4b4a2ea116b438e731f24a5b1fa34
Co-authored-by: Reily Siegel <mail@reilysiegel.com>
Co-authored-by: Liam Hupfer <liam@hpfr.net>
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Morgan Smith 2025-08-12 22:38:07 -05:00 committed by Andreas Enge
parent 6df3862787
commit 8977d13d15
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -5,8 +5,10 @@
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2022 Reily Siegel <mail@reilysiegel.com>
;;; Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2025 Mathieu Laparie <mlaparie@disr.it>
;;; Copyright © 2025 Liam Hupfer <liam@hpfr.net>
;;;
;;; 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)))