[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36856] build: Add julia-build-system
From: |
Julien Lepiller |
Subject: |
[bug#36856] build: Add julia-build-system |
Date: |
Tue, 30 Jul 2019 16:23:47 +0200 |
User-agent: |
K-9 Mail for Android |
Le 30 juillet 2019 16:11:19 GMT+02:00, Ricardo Wurmus <address@hidden> a écrit :
>
>Nicolò Balzarotti <address@hidden> writes:
>
>> 3. By adding a simple startup.jl script, inspired by what emacs does.
>This
>> is simplified so I'm not sure it works for every corner case.
>> #+begin_src julia
>> let paths = [expanduser("~/.guix-profile"),
>"/run/current-system/profile"]
>> ("GUIX_ENVIRONMENT" in keys(ENV)) && push!(paths,
>> ENV["GUIX_ENVIRONMENT"])
>> empty!(LOAD_PATH)
>> push!.(Ref(LOAD_PATH), joinpath.(paths, "share/julia/packages/"))
>> push!(LOAD_PATH, "@stdlib")
>> push!.(Ref(DEPOT_PATH), joinpath.(paths, "share/julia/"))
>> nothing
>> end
>> #+end_src
>
>Could this perhaps be handled by a profile hook that is included only
>when the profile manifest contains a julia package?
Or simply with an environment variable? GUIX_JULIA_PATH or something?