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
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -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"))