1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-27 03:21:49 +02: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:
Christopher Baines
2017-10-17 20:15:52 +01:00
parent 84bd924382
commit f4dd303282
+9
View File
@@ -4301,6 +4301,15 @@ NetSurf project.")
#:tests? #f
#: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
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))