guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: agi-bio: Fix unqualified file reference.


From: guix-commits
Subject: branch master updated: gnu: agi-bio: Fix unqualified file reference.
Date: Tue, 17 Mar 2020 12:00:40 -0400

This is an automated email from the git hooks/post-receive script.

rekado pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new eecf724  gnu: agi-bio: Fix unqualified file reference.
eecf724 is described below

commit eecf72433fef8dee6bc3e1c69ea4f3f90410e096
Author: Ricardo Wurmus <address@hidden>
AuthorDate: Tue Mar 17 16:59:17 2020 +0100

    gnu: agi-bio: Fix unqualified file reference.
    
    * gnu/packages/opencog.scm (agi-bio)[arguments]: Add phase
    'fix-unqualified-load.
---
 gnu/packages/opencog.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/opencog.scm b/gnu/packages/opencog.scm
index ea68585..c3b89d4 100644
--- a/gnu/packages/opencog.scm
+++ b/gnu/packages/opencog.scm
@@ -276,7 +276,17 @@ combination.")
                          "/include/guile/2.2/")
           (string-append "-DGUILE_SITE_DIR="
                          (assoc-ref %outputs "out")
-                         "/share/guile/site/2.2/"))))
+                         "/share/guile/site/2.2/"))
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-unqualified-load
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "bioscience/bioscience.scm"
+                 (("\\(load \"bioscience/types/bioscience_types.scm\"\\)")
+                  (format #f "(load 
\"~a/bioscience/types/bioscience_types.scm\")"
+                          (string-append (assoc-ref outputs "out")
+                                         "/share/guile/site/2.2/opencog"))))
+               #t)))))
       (inputs
        `(("atomspace" ,atomspace)
          ("cogutil" ,cogutil)



reply via email to

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