From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:57648) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsSpH-0008Va-KA for guix-patches@gnu.org; Tue, 30 Jul 2019 10:10:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsSpG-0005jh-ML for guix-patches@gnu.org; Tue, 30 Jul 2019 10:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42146) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsSpG-0005jU-BW for guix-patches@gnu.org; Tue, 30 Jul 2019 10:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsSpG-00071Z-5O for guix-patches@gnu.org; Tue, 30 Jul 2019 10:10:02 -0400 Subject: [bug#36856] build: Add julia-build-system Resent-Message-ID: References: From: Ricardo Wurmus In-reply-to: Date: Tue, 30 Jul 2019 16:08:55 +0200 Message-ID: <87tvb362dk.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: =?UTF-8?Q?Nicol=C3=B2?= Balzarotti Cc: 36856@debbugs.gnu.org Hi Nicol=C3=B2, > 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 =3D [expanduser("~/.guix-profile"), "/run/current-system/profil= e"] > ("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=E2=80=99m not a fan of hard-coding ~/.guix-profile, because I know that m= any 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