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
|
@ -4301,6 +4301,15 @@ NetSurf project.")
|
||||||
#: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 New Issue