diff options
| author | Matthias Riße <matrss@0px.xyz> | 2025-06-14 16:52:54 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-06-16 20:20:55 +0100 |
| commit | 08c125b5a6d60b5f1339e9dd0a8eb1997709470a (patch) | |
| tree | 40e04fc61215bd6c18c77e3908d37da888a933fc /gnu/packages/version-control.scm | |
| parent | 2075a411aa125bdd4de2e59ee38cb3bd98029d2b (diff) | |
gnu: Add git-credential-oauth.
* gnu/packages/version-control.scm (git-credential-oauth): New variable.
Change-Id: Icd17b0e69814db45c32ec32370fc406d3fc02c29
Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/version-control.scm')
| -rw-r--r-- | gnu/packages/version-control.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 1bcf4f0bde0..35144f94209 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1536,6 +1536,45 @@ issue management.") (home-page "https://github.com/dspinellis/git-issue") (license license:gpl3+)))) +(define-public git-credential-oauth + (package + (name "git-credential-oauth") + (version "0.15.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hickford/git-credential-oauth") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1fid6dl82val6miq61dm203y7k2kzccpmra43fngnqrr1p4hh2pl")))) + (build-system go-build-system) + (arguments + (list + #:install-source? #f + #:build-flags #~(list (string-append "-ldflags=-X main.version=" + #$version)) + #:import-path "github.com/hickford/git-credential-oauth" + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'install-manpages + (lambda* (#:key import-path #:allow-other-keys) + (let ((man (string-append "src/" import-path + "/git-credential-oauth.1"))) + (install-file man (string-append #$output "/share/man/man1")))))))) + (native-inputs + (list go-golang-org-x-oauth2)) + (home-page "https://github.com/hickford/git-credential-oauth") + (synopsis "Git credential helper that securely authenticates using OAuth") + (description + "git-credential-oauth is a Git credential helper that securely +authenticates to GitHub, GitLab, BitBucket, Gerrit, Gitea, and Forgejo using +OAuth. The first time you authenticate, the helper opens a browser window to +the host. Subsequent authentication within storage lifetime is +non-interactive.") + (license license:asl2.0))) + (define-public git-crypt (package (name "git-crypt") |
