gnu: agi-bio: Fix unqualified file reference.
* gnu/packages/opencog.scm (agi-bio)[arguments]: Add phase 'fix-unqualified-load.
This commit is contained in:
		
							parent
							
								
									8d003ca344
								
							
						
					
					
						commit
						eecf72433f
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		|  | @ -276,7 +276,17 @@ combination.") | ||||||
|                          "/include/guile/2.2/") |                          "/include/guile/2.2/") | ||||||
|           (string-append "-DGUILE_SITE_DIR=" |           (string-append "-DGUILE_SITE_DIR=" | ||||||
|                          (assoc-ref %outputs "out") |                          (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 |       (inputs | ||||||
|        `(("atomspace" ,atomspace) |        `(("atomspace" ,atomspace) | ||||||
|          ("cogutil" ,cogutil) |          ("cogutil" ,cogutil) | ||||||
|  |  | ||||||
		Reference in a new issue