[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: git: Add "credential-netrc" output.
From: |
Gábor Boskovits |
Subject: |
01/01: gnu: git: Add "credential-netrc" output. |
Date: |
Fri, 22 Jun 2018 05:38:39 -0400 (EDT) |
boskovits pushed a commit to branch master
in repository guix.
commit 145b06938c448a546e40fe97b2e1f4171b53f4fa
Author: Pierre Neidhardt <address@hidden>
Date: Fri May 18 15:25:03 2018 +0200
gnu: git: Add "credential-netrc" output.
* gnu/packages/version-control.scm (git): Add "credential-netrc"
output.
Signed-off-by: Gábor Boskovits <address@hidden>
---
gnu/packages/version-control.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 15974c8..2a108ab 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -191,6 +191,7 @@ as well as the classic centralized workflow.")
(outputs '("out" ; the core
"send-email" ; for git-send-email
"svn" ; git-svn
+ "credential-netrc" ; git-credential-netrc
"gui")) ; gitk, git gui
(arguments
`(#:make-flags `("V=1" ;more verbose compilation
@@ -274,6 +275,12 @@ as well as the classic centralized workflow.")
(copy-file "contrib/completion/git-completion.bash"
(string-append completions "/git"))
#t)))
+ (add-after 'install 'install-credential-netrc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((netrc (assoc-ref outputs "credential-netrc")))
+ (install-file "contrib/credential/netrc/git-credential-netrc"
+ (string-append netrc "/bin"))
+ #t)))
(add-after 'install 'split
(lambda* (#:key inputs outputs #:allow-other-keys)
;; Split the binaries to the various outputs.