mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: gitolite: Fix shebangs in hooks.
Fixes <https://bugs.gnu.org/25957>. * gnu/packages/version-control.scm (gitolite)[arguments]: Add 'fix-hooks-shebangs' phase to fix references to '/usr/bin/perl'. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
34ba7cd4eb
commit
d0c16adb19
1 changed files with 11 additions and 0 deletions
|
@ -616,6 +616,17 @@ (define-public gitolite
|
|||
(substitute* (find-files "." ".*")
|
||||
((" perl -")
|
||||
(string-append " " perl " -"))))))
|
||||
(add-before 'install 'fix-hooks-shebangs
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((perl (string-append (assoc-ref inputs "perl")
|
||||
"/bin/perl")))
|
||||
;; The files in 'lib/Gitolite/Hooks' keep references to
|
||||
;; '/usr/bin/perl', without this fix it is impossible to
|
||||
;; to run gitolite in production.
|
||||
(substitute* (find-files "src/lib/Gitolite/Hooks" ".*")
|
||||
(("/usr/bin/perl")
|
||||
perl))
|
||||
#t)))
|
||||
(replace 'install
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((output (assoc-ref outputs "out"))
|
||||
|
|
Loading…
Reference in a new issue