From 8977d13d1563609831ef7384b2b789bf7ccb168e Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Tue, 12 Aug 2025 22:38:07 -0500 Subject: [PATCH] gnu: Add cyrus-sasl-xoauth2. * gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable. Change-Id: I853c8d3df1b4b4a2ea116b438e731f24a5b1fa34 Co-authored-by: Reily Siegel Co-authored-by: Liam Hupfer Signed-off-by: Andreas Enge --- 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 07102467c46..0a13a95b3ee 100644 --- a/gnu/packages/cyrus-sasl.scm +++ b/gnu/packages/cyrus-sasl.scm @@ -5,8 +5,10 @@ ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2022 Marius Bakke ;;; Copyright © 2022 Morgan Smith +;;; Copyright © 2022 Reily Siegel ;;; Copyright © 2024 Janneke Nieuwenhuizen ;;; Copyright © 2025 Mathieu Laparie +;;; Copyright © 2025 Liam Hupfer ;;; ;;; 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)))