DRAFT gnu: julia: Move default load path to the end.

DRAFT Something’s still broken.

* gnu/packages/julia.scm (julia)[arguments]: In ‘make-wrapper’ phase,
arrange to have the empty entry at the end of JULIA_LOAD_PATH and
JULIA_DEPOT_PATH.

Change-Id: I81e5dbc06535cb9fc7253b2944984cf7890bbe65
This commit is contained in:
Ludovic Courtès 2025-01-08 10:21:12 +01:00
parent c5fd5e7dfe
commit 961866fdca
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -541,12 +541,15 @@ (define file
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")) (bin (string-append out "/bin"))
(program "julia")) (program "julia"))
;; Always append ":" to the end of the load path. The
;; empty load path entry expands to the default load
;; path, which includes Julia's own modules.
(with-directory-excursion bin (with-directory-excursion bin
(wrap-program program (wrap-program program
`("JULIA_LOAD_PATH" ":" prefix `("JULIA_LOAD_PATH" ":" =
("" "$JULIA_LOAD_PATH")) ("$JULIA_LOAD_PATH" ""))
`("JULIA_DEPOT_PATH" ":" prefix `("JULIA_DEPOT_PATH" ":" =
("" "$JULIA_DEPOT_PATH")))))))) ("$JULIA_DEPOT_PATH" ""))))))))
#:make-flags #:make-flags
#~(list (string-append "prefix=" #$output) #~(list (string-append "prefix=" #$output)