mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
This helps with CGI support. * gnu/packages/web.scm (ikiwik)[arguments]: Add 'include-PERL5LIB-in-wrapper phase.
This commit is contained in:
parent
84bd924382
commit
f4dd303282
1 changed files with 9 additions and 0 deletions
|
@ -4301,6 +4301,15 @@ (define-public ikiwiki
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'include-PERL5LIB-in-wrapper
|
||||||
|
(lambda _
|
||||||
|
(substitute* "IkiWiki/Wrapper.pm"
|
||||||
|
(("^@wrapper\\_hooks")
|
||||||
|
(string-append
|
||||||
|
"@wrapper_hooks\n"
|
||||||
|
" addenv(\"PERL5LIB\", \""
|
||||||
|
(getenv "PERL5LIB")
|
||||||
|
"\");")))))
|
||||||
(add-after 'install 'wrap-programs
|
(add-after 'install 'wrap-programs
|
||||||
(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…
Reference in a new issue