[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
46/60: gnu: Add go-github-go-git.
From: |
guix-commits |
Subject: |
46/60: gnu: Add go-github-go-git. |
Date: |
Sun, 9 Aug 2020 10:25:04 -0400 (EDT) |
wigust pushed a commit to branch master
in repository guix.
commit c7452d23640de453600b1a0fe74a3d1990931bab
Author: Oleg Pykhalov <go.wigust@gmail.com>
AuthorDate: Sun Aug 9 12:55:36 2020 +0300
gnu: Add go-github-go-git.
* gnu/packages/version-control.scm (go-github-go-git): New variable.
---
gnu/packages/version-control.scm | 55 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 28c4093..62ccd46 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -74,6 +74,7 @@
#:use-module (gnu packages flex)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gl)
+ #:use-module (gnu packages golang)
#:use-module (gnu packages groff)
#:use-module (gnu packages guile)
#:use-module (gnu packages image)
@@ -2651,3 +2652,57 @@ package is provided for users who need to recover
@code{tla} repositories and
for historians.")
(home-page "https://www.gnu.org/software/gnu-arch/")
(license license:gpl2))) ;version 2 only
+
+(define-public go-github-go-git
+ (package
+ (name "go-github-go-git")
+ (version "5.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/go-git/go-git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1vkcmhh2qq8c38sjbnzf0wvg2rzr19wssaq177bsvrjwj1xz1qbs"))))
+ (build-system go-build-system)
+ (arguments
+ `(#:tests? #f ;requires network connection
+ #:import-path "github.com/go-git/go-git/v5"
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'setup
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((git (assoc-ref inputs "git"))
+ (git-bin (string-append (assoc-ref inputs "git") "/bin"))
+ (git-exe (string-append git-bin "/git")))
+ (setenv "GIT_DIST_PATH=" git)
+ (setenv "GIT_EXEC_PATH=" git-bin)
+ (setenv "HOME" (getcwd))
+ (invoke git-exe "config" "--global" "user.email"
"gha@example.com")
+ (invoke git-exe "config" "--global" "user.name" "GitHub
Actions")
+ #t)
+ #t)))))
+ (native-inputs
+ `(("go-github-com-emirpasic-gods" ,go-github-com-emirpasic-gods)
+ ("go-github-com-go-git-gcfg" ,go-github-com-go-git-gcfg)
+ ("go-github-com-go-git-go-billy" ,go-github-com-go-git-go-billy)
+ ("go-github-com-imdario-mergo" ,go-github-com-imdario-mergo)
+ ("go-github-com-jbenet-go-context" ,go-github-com-jbenet-go-context)
+ ("go-github-com-kevinburke-ssh-config"
,go-github-com-kevinburke-ssh-config)
+ ("go-github-com-mitchellh-go-homedir"
,go-github-com-mitchellh-go-homedir)
+ ("go-github-com-sergi-go-diff" ,go-github-com-sergi-go-diff)
+ ("go-github-com-xanzy-ssh-agentf" ,go-github-com-xanzy-ssh-agent)
+ ("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
+ ("go-golang-org-x-net" ,go-golang-org-x-net)
+ ("go-gopkg-in-warnings" ,go-gopkg-in-warnings)
+ ("go-github-com-go-git-go-git-fixtures"
,go-github-com-go-git-go-git-fixtures)
+ ("go-gopkg-in-check-v1" ,go-gopkg-in-check-v1)
+ ("go-github-com-alcortesm-tgz" ,go-github-com-alcortesm-tgz)
+ ("go-golang-org-x-text" ,go-golang-org-x-text)
+ ("git" ,git)))
+ (home-page "https://github.com/go-git/")
+ (synopsis "Git implementation library")
+ (description "This package provides a Git implementation library.")
+ (license license:asl2.0)))
- 55/60: gnu: Add go-github-com-godbus-dbus., (continued)
- 55/60: gnu: Add go-github-com-godbus-dbus., guix-commits, 2020/08/09
- 57/60: gnu: Add go-etcd-io-bbolt., guix-commits, 2020/08/09
- 50/60: gnu: Add go-github-com-pkg-diff., guix-commits, 2020/08/09
- 54/60: gnu: Add go-github-com-twpayne-go-xdg., guix-commits, 2020/08/09
- 56/60: gnu: Add go-github-com-zalando-go-keyring., guix-commits, 2020/08/09
- 59/60: gnu: Add gopkg-in-errgo-fmt-errors., guix-commits, 2020/08/09
- 36/60: gnu: Add go-gopkg-in-warnings., guix-commits, 2020/08/09
- 37/60: gnu: Add go-github-com-go-git-gcfg., guix-commits, 2020/08/09
- 58/60: gnu: Add go-github-com-rogpeppe-go-internal., guix-commits, 2020/08/09
- 44/60: gnu: Add go-github-com-go-git-go-git-fixtures., guix-commits, 2020/08/09
- 46/60: gnu: Add go-github-go-git.,
guix-commits <=
- 47/60: gnu: Add go-github-com-google-go-querystring., guix-commits, 2020/08/09
- 53/60: gnu: Add go-github-com-twpayne-go-vfsafero., guix-commits, 2020/08/09
- 49/60: gnu: Add go-github-com-google-renameio., guix-commits, 2020/08/09
- 60/60: gnu: Add chezmoi., guix-commits, 2020/08/09