mirror of https://notabug.org/mthl/cuirass.git
base: Handle multi-directories in load-path.
* src/cuirass/base.scm (set-guix-package-path!): Parse colon separated directories in load-path. Co-authored-by: Mathieu Lirzin <mthl@gnu.org>improve-build-parallelism
parent
f695c79eb3
commit
aebad5184d
|
@ -193,8 +193,13 @@ if required. Return the last commit ID on success, #f otherwise."
|
|||
|
||||
(define (set-guix-package-path! path)
|
||||
"Use PATH to find custom packages not defined in (gnu packages ...)
|
||||
namespace or not already present in current Guile load paths."
|
||||
(%package-module-path (cons path (%package-module-path)))
|
||||
(%patch-path (cons path (%patch-path)))
|
||||
(set! %load-path (cons path %load-path))
|
||||
(set! %load-compiled-path (cons path %load-compiled-path)))
|
||||
namespace or not already present in current Guile load paths. PATH is
|
||||
expected to be a colon-separated string of directories."
|
||||
(define (set-paths! dir)
|
||||
(%package-module-path (cons dir (%package-module-path)))
|
||||
(%patch-path (cons dir (%patch-path)))
|
||||
(set! %load-path (cons dir %load-path))
|
||||
(set! %load-compiled-path (cons dir %load-compiled-path)))
|
||||
|
||||
(let ((dirs (parse-path path)))
|
||||
(for-each set-paths! dirs)))
|
||||
|
|
Loading…
Reference in New Issue