From: Ricardo Wurmus <rekado@elephly.net>
To: "Nicolò Balzarotti" <anothersms@gmail.com>
Cc: 36856@debbugs.gnu.org
Subject: [bug#36856] build: Add julia-build-system
Date: Tue, 30 Jul 2019 16:08:55 +0200 [thread overview]
Message-ID: <87tvb362dk.fsf@elephly.net> (raw)
In-Reply-To: <CAO7Ox=Y2-3TCYRnYcohASYEfJfAnULJAbNr8xRXB1dT325fE8Q@mail.gmail.com>
Hi Nicolò,
> Lately I've been working a bit on julia packages support in guix.
>
> The good news first: I've been able to install dozen of them, including
> those depending on binaryprovider with simple workarounds.
Excellent!
> 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
This looks like it would not work with profiles installed anywhere else.
I’m not a fan of hard-coding ~/.guix-profile, because I know that many
people here at the institute use per-project profiles at custom
location. Any mechanism that relies on things to be installed to
~/.guix-profile will fail them.
Could this be made profile-agnostic? Perhaps the GUIX_PROFILE
environment variable could be referenced?
Thanks for working on it!
--
Ricardo
next prev parent reply other threads:[~2019-07-30 14:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-30 12:49 [bug#36856] build: Add julia-build-system Nicolò Balzarotti
2019-07-30 14:08 ` Ricardo Wurmus [this message]
2019-07-30 14:11 ` Ricardo Wurmus
2019-07-30 14:23 ` Julien Lepiller
2019-07-30 14:33 ` Ricardo Wurmus
2019-07-30 16:02 ` Nicolò Balzarotti
2019-08-03 10:03 ` Nicolò Balzarotti
2019-08-03 10:04 ` Nicolò Balzarotti
2019-09-04 20:21 ` bug#36856: " Julien Lepiller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tvb362dk.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=36856@debbugs.gnu.org \
--cc=anothersms@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).