guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.


From: Christopher Baines
Subject: 01/01: gnu: Patch ikiwiki to set PERL5LIB in the CGI wrapper.
Date: Sun, 19 Nov 2017 04:18:19 -0500 (EST)

cbaines pushed a commit to branch master
in repository guix.

commit f4dd303282dc0bfd88606e383c0cf98f3742f771
Author: Christopher Baines <address@hidden>
Date:   Tue Oct 17 20:15:52 2017 +0100

    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(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index a78f5b6..8a6cd91 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"
+               (("address@hidden")
+                (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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]