From f4dd303282dc0bfd88606e383c0cf98f3742f771 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 17 Oct 2017 20:15:52 +0100 Subject: 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. --- gnu/packages/web.scm | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index a78f5b6f0d..8a6cd91ebc 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -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")) -- cgit v1.2.3