mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-07 11:29:59 +01:00
gnu: git: Add credential-libsecret output.
* gnu/packages/version-control.scm (git)[native-inputs]: Add pkg-config. [inputs]: Add glib and libsecret. [outputs]: Add "credential-libsecret". [arguments]: Add 'install-credential-libsecret phase to #:phases to build and install "git-credential-libsecret" to "credential-libsecret" output. (git-minimal)[arguments]: Delete the 'install-credential-libsecret phase. Signed-off-by: Chris Marusich <cmmarusich@gmail.com>
This commit is contained in:
parent
90ccb46a55
commit
c53ee79c4c
1 changed files with 22 additions and 2 deletions
|
@ -34,6 +34,8 @@
|
||||||
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
||||||
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
|
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
|
||||||
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
|
||||||
|
;;; Copyright © 2021 Chris Marusich <cmmarusich@gmail.com>
|
||||||
|
;;; Copyright © 2021 Léo Le Bouter <lle-bout@zaclys.net>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -81,6 +83,8 @@
|
||||||
#:use-module (gnu packages freedesktop)
|
#:use-module (gnu packages freedesktop)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages gl)
|
#:use-module (gnu packages gl)
|
||||||
|
#:use-module (gnu packages glib)
|
||||||
|
#:use-module (gnu packages gnome)
|
||||||
#:use-module (gnu packages golang)
|
#:use-module (gnu packages golang)
|
||||||
#:use-module (gnu packages groff)
|
#:use-module (gnu packages groff)
|
||||||
#:use-module (gnu packages guile)
|
#:use-module (gnu packages guile)
|
||||||
|
@ -194,7 +198,8 @@ as well as the classic centralized workflow.")
|
||||||
;; For subtree documentation.
|
;; For subtree documentation.
|
||||||
("asciidoc" ,asciidoc-py3)
|
("asciidoc" ,asciidoc-py3)
|
||||||
("docbook-xsl" ,docbook-xsl)
|
("docbook-xsl" ,docbook-xsl)
|
||||||
("xmlto" ,xmlto)))
|
("xmlto" ,xmlto)
|
||||||
|
("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("curl" ,curl)
|
`(("curl" ,curl)
|
||||||
("expat" ,expat)
|
("expat" ,expat)
|
||||||
|
@ -220,11 +225,16 @@ as well as the classic centralized workflow.")
|
||||||
|
|
||||||
;; For 'git gui', 'gitk', and 'git citool'.
|
;; For 'git gui', 'gitk', and 'git citool'.
|
||||||
("tcl" ,tcl)
|
("tcl" ,tcl)
|
||||||
("tk" ,tk)))
|
("tk" ,tk)
|
||||||
|
|
||||||
|
;; For 'git-credential-libsecret'
|
||||||
|
("glib" ,glib)
|
||||||
|
("libsecret" ,libsecret)))
|
||||||
(outputs '("out" ; the core
|
(outputs '("out" ; the core
|
||||||
"send-email" ; for git-send-email
|
"send-email" ; for git-send-email
|
||||||
"svn" ; git-svn
|
"svn" ; git-svn
|
||||||
"credential-netrc" ; git-credential-netrc
|
"credential-netrc" ; git-credential-netrc
|
||||||
|
"credential-libsecret" ; git-credential-libsecret
|
||||||
"subtree" ; git-subtree
|
"subtree" ; git-subtree
|
||||||
"gui")) ; gitk, git gui
|
"gui")) ; gitk, git gui
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -262,6 +272,7 @@ as well as the classic centralized workflow.")
|
||||||
|
|
||||||
#:modules ((srfi srfi-1)
|
#:modules ((srfi srfi-1)
|
||||||
(srfi srfi-26)
|
(srfi srfi-26)
|
||||||
|
((guix build gnu-build-system) #:prefix gnu:)
|
||||||
,@%gnu-build-system-modules)
|
,@%gnu-build-system-modules)
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
@ -389,6 +400,14 @@ as well as the classic centralized workflow.")
|
||||||
`("PERL5LIB" ":" prefix
|
`("PERL5LIB" ":" prefix
|
||||||
(,(string-append (assoc-ref outputs "out") "/share/perl5"))))
|
(,(string-append (assoc-ref outputs "out") "/share/perl5"))))
|
||||||
#t)))
|
#t)))
|
||||||
|
(add-after 'install 'install-credential-libsecret
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((libsecret (assoc-ref outputs "credential-libsecret")))
|
||||||
|
(with-directory-excursion "contrib/credential/libsecret"
|
||||||
|
((assoc-ref gnu:%standard-phases 'build))
|
||||||
|
(install-file "git-credential-libsecret"
|
||||||
|
(string-append libsecret "/bin"))
|
||||||
|
#t))))
|
||||||
(add-after 'install 'install-subtree
|
(add-after 'install 'install-subtree
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let ((subtree (assoc-ref outputs "subtree")))
|
(let ((subtree (assoc-ref outputs "subtree")))
|
||||||
|
@ -535,6 +554,7 @@ everything from small to very large projects with speed and efficiency.")
|
||||||
(delete 'install-man-pages)
|
(delete 'install-man-pages)
|
||||||
(delete 'install-subtree)
|
(delete 'install-subtree)
|
||||||
(delete 'install-credential-netrc)
|
(delete 'install-credential-netrc)
|
||||||
|
(delete 'install-credential-libsecret)
|
||||||
(add-after 'install 'remove-unusable-perl-commands
|
(add-after 'install 'remove-unusable-perl-commands
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue