summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Polidoro <peter@polidoro.io>2022-11-04 13:56:05 -0400
committerGuix Patches Tester <>2022-11-04 19:43:16 +0100
commit51919b4da08c298e9858a00b99d431ce9c0c91c4 (patch)
tree05d1c85ce8834c464fc9cd835b4acde4dcad5885
parent31e46e71e07fe272626da6c3e2a90d02a02b2b47 (diff)
downloadguix-patches-51919b4da08c298e9858a00b99d431ce9c0c91c4.tar
guix-patches-51919b4da08c298e9858a00b99d431ce9c0c91c4.tar.gz
gnu: Add cyrus-sasl-xoauth2.issue-59019
* gnu/packages/cyrus-sasl.scm (cyrus-sasl-xoauth2): New variable.
-rw-r--r--gnu/packages/cyrus-sasl.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/cyrus-sasl.scm b/gnu/packages/cyrus-sasl.scm
index 2cd18f3e5e..ddb8c476ac 100644
--- a/gnu/packages/cyrus-sasl.scm
+++ b/gnu/packages/cyrus-sasl.scm
@@ -3,6 +3,7 @@
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
+;;; Copyright © 2022 Peter Polidoro <peter@polidoro.io>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -28,6 +29,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public cyrus-sasl
@@ -78,3 +80,33 @@ 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
+ ;; Not sure what is required here in order to get this installed into the
+ ;; correct location. Maybe it needs to be installed in the plugindir for
+ ;; the cyrus-sasl package above? Not sure how to reference that directory
+ ;; in this package though.
+ '(#:configure-flags (list (string-append "--prefix="
+ (assoc-ref %outputs "out")
+ "/lib/sasl2"))))
+ (native-inputs (list autoconf automake libtool))
+ (inputs (list cyrus-sasl))
+ (home-page "https://github.com/moriyoshi/cyrus-sasl-xoauth2")
+ (synopsis "XOAUTH2 mechanism plugin for cyrus-sasl")
+ (description "XOAUTH2 mechanism plugin for cyrus-sasl.")
+ (license (list license:expat license:expat))))
+