* [bug#44814] gnu: Add oauth2l.
@ 2020-11-23 8:45 elaexuotee--- via Guix-patches via
2021-11-03 12:14 ` [bug#44814] [PATCH v2] " phodina via Guix-patches via
0 siblings, 1 reply; 3+ messages in thread
From: elaexuotee--- via Guix-patches via @ 2020-11-23 8:45 UTC (permalink / raw)
To: 44814
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-gnu-Add-oauth2l.patch --]
[-- Type: text/x-patch, Size: 2525 bytes --]
From 4cb46d71c90ad1db379ad18731e9b07923d8f696 Mon Sep 17 00:00:00 2001
From: "B. Wilson" <elaexuotee@wilsonb.com>
Date: Mon, 23 Nov 2020 17:39:38 +0900
Subject: [PATCH] gnu: Add oauth2l.
To: guix-patches@gnu.org
gnu/packages/authentication.scm (oauth2l): New variable.
---
gnu/packages/authentication.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm
index afa20945e7..f8a6fdf4ed 100644
--- a/gnu/packages/authentication.scm
+++ b/gnu/packages/authentication.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -25,6 +26,7 @@
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages security-token)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system go)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -115,3 +117,29 @@ and the time-based @dfn{TOTP} algorithm (RFC6238).")
(description "The Yubico PAM module provides an easy way to integrate the
YubiKey into your existing user authentication infrastructure.")
(license license:bsd-2))))
+
+(define-public oauth2l
+ (package
+ (name "oauth2l")
+ (version "1.1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/oauth2l")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1icgcqk15y9f16mpg243570xfrcfs0lvhn5xl18yfxkwayxffgaf"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/google/oauth2l"))
+ (home-page "https://github.com/google/oauth2l")
+ (synopsis "Simple CLI for interacting with Google API authentication")
+ (description
+ "@code{oauth2l} (pronounced ``oauth tool'') is a simple command-line tool
+for working with @url{https://developers.google.com/identity/protocols/OAuth2,
+Google OAuth 2.0} written in Go. Its primary use is to fetch and print OAuth
+2.0 access tokens, which can be used with other command-line tools and
+scripts.")
+ (license license:asl2.0)))
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#44814] [PATCH v2] gnu: Add oauth2l.
2020-11-23 8:45 [bug#44814] gnu: Add oauth2l elaexuotee--- via Guix-patches via
@ 2021-11-03 12:14 ` phodina via Guix-patches via
2022-01-14 20:39 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: phodina via Guix-patches via @ 2021-11-03 12:14 UTC (permalink / raw)
To: 44814@debbugs.gnu.org
Here's updated version of the patch. Otherwise LGTM.
* gnu/packages/authentication.scm (oauth2l): New variable.
--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/authentication.scm b/gnu/packages/authentication.scm
index a8070f4789..487b7171b1 100644
--- a/gnu/packages/authentication.scm
+++ b/gnu/packages/authentication.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2020 B. Wilson <elaexuotee@wilsonb.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27,6 +28,7 @@ (define-module (gnu packages authentication)
#:use-module (gnu packages tls)
#:use-module (gnu packages xml)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system go)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module ((guix licenses) #:prefix license:)
@@ -91,6 +93,32 @@ (define-public oath-toolkit
(license (list license:lgpl2.1+ ; the libraries (liboath/ & libpskc/)
license:gpl3+)))) ; the tools (everything else)
+(define-public oauth2l
+ (package
+ (name "oauth2l")
+ (version "1.2.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/google/oauth2l")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0a9x0b31ybyjg0k7923xw6zr6crm0kigcn8g6hyr228nbvw35r8w"))))
+ (build-system go-build-system)
+ (arguments
+ '(#:import-path "github.com/google/oauth2l"))
+ (home-page "https://github.com/google/oauth2l")
+ (synopsis "Simple CLI for interacting with Google API authentication")
+ (description
+ "@code{oauth2l} (pronounced ``oauth tool'') is a simple command-line tool
+for working with @url{https://developers.google.com/identity/protocols/OAuth2,
+Google OAuth 2.0} written in Go. Its primary use is to fetch and print OAuth
+2.0 access tokens, which can be used with other command-line tools and
+scripts.")
+ (license license:asl2.0)))
+
(define-public yubico-pam
(let ((commit "b5bd00db81e0e0e0ecced65c684080bb56ddc35b")
(revision "0"))
--
2.33.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#44814] [PATCH v2] gnu: Add oauth2l.
2021-11-03 12:14 ` [bug#44814] [PATCH v2] " phodina via Guix-patches via
@ 2022-01-14 20:39 ` Nicolas Goaziou
0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2022-01-14 20:39 UTC (permalink / raw)
To: 44814; +Cc: 44814@debbugs.gnu.org, phodina
Hello,
phodina via Guix-patches via <guix-patches@gnu.org> writes:
> * gnu/packages/authentication.scm (oauth2l): New variable.
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-14 20:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23 8:45 [bug#44814] gnu: Add oauth2l elaexuotee--- via Guix-patches via
2021-11-03 12:14 ` [bug#44814] [PATCH v2] " phodina via Guix-patches via
2022-01-14 20:39 ` Nicolas Goaziou
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.