From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:34388) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsTCV-0003LI-UT for guix-patches@gnu.org; Tue, 30 Jul 2019 10:34:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsTCU-0002NN-Ul for guix-patches@gnu.org; Tue, 30 Jul 2019 10:34:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsTCU-0002Mt-HS for guix-patches@gnu.org; Tue, 30 Jul 2019 10:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsTCU-0007dI-Ag for guix-patches@gnu.org; Tue, 30 Jul 2019 10:34:02 -0400 Subject: [bug#36856] build: Add julia-build-system Resent-Message-ID: References: <87sgqn629k.fsf@elephly.net> <1DBAF4CE-8BA5-43EF-9CFE-5A73FB8118EB@lepiller.eu> From: Ricardo Wurmus In-reply-to: <1DBAF4CE-8BA5-43EF-9CFE-5A73FB8118EB@lepiller.eu> Date: Tue, 30 Jul 2019 16:33:03 +0200 Message-ID: <87o91b619c.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Julien Lepiller Cc: anothersms@gmail.com, 36856@debbugs.gnu.org Julien Lepiller writes: > Le 30 juillet 2019 16:11:19 GMT+02:00, Ricardo Wurmus a =C3=A9crit : >> >>Nicol=C3=B2 Balzarotti 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 =3D [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? If this is the route you go down, please ensure that it can be used as a search path with more than one directory. This would make it possible to extend a Julia environment with the contents of more than one profile. -- Ricardo