gnu: git: Use 'modify-phases'.
* gnu/packages/version-control.scm (git)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
01497dfe6c
commit
98378db6ba
1 changed files with 18 additions and 21 deletions
|
@ -166,25 +166,23 @@ (define-public git
|
|||
#:modules ((srfi srfi-1)
|
||||
,@%gnu-build-system-modules)
|
||||
#:phases
|
||||
(alist-cons-after
|
||||
'configure 'patch-makefile-shebangs
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
(("/bin/sh") (which "sh"))
|
||||
(("/usr/bin/perl") (which "perl"))
|
||||
(("/usr/bin/python") (which "python"))))
|
||||
(alist-cons-after
|
||||
'install 'install-shell-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(completions (string-append out "/etc/bash_completion.d")))
|
||||
;; TODO: Install the tcsh and zsh completions in the right place.
|
||||
(mkdir-p completions)
|
||||
(copy-file "contrib/completion/git-completion.bash"
|
||||
(string-append completions "/git"))
|
||||
#t))
|
||||
(alist-cons-after
|
||||
'install 'split
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'configure 'patch-makefile-shebangs
|
||||
(lambda _
|
||||
(substitute* "Makefile"
|
||||
(("/bin/sh") (which "sh"))
|
||||
(("/usr/bin/perl") (which "perl"))
|
||||
(("/usr/bin/python") (which "python")))))
|
||||
(add-after 'install 'install-shell-completion
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(completions (string-append out "/etc/bash_completion.d")))
|
||||
;; TODO: Install the tcsh and zsh completions in the right place.
|
||||
(mkdir-p completions)
|
||||
(copy-file "contrib/completion/git-completion.bash"
|
||||
(string-append completions "/git"))
|
||||
#t)))
|
||||
(add-after 'install 'split
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
;; Split the binaries to the various outputs.
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
|
@ -256,8 +254,7 @@ (define-public git
|
|||
;; specify a single directory, not a search path.
|
||||
(wrap-program (string-append out "/bin/git")
|
||||
`("PATH" ":" prefix
|
||||
("$HOME/.guix-profile/libexec/git-core")))))
|
||||
%standard-phases)))))
|
||||
("$HOME/.guix-profile/libexec/git-core")))))))))
|
||||
|
||||
(native-search-paths
|
||||
;; For HTTPS access, Git needs a single-file certificate bundle, specified
|
||||
|
|
Loading…
Reference in a new issue