From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60737) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsT3r-0000Yg-2F for guix-patches@gnu.org; Tue, 30 Jul 2019 10:25:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsT3o-0006D7-BO for guix-patches@gnu.org; Tue, 30 Jul 2019 10:25:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsT3m-0006Cb-5O for guix-patches@gnu.org; Tue, 30 Jul 2019 10:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsT3l-0007OZ-Sf for guix-patches@gnu.org; Tue, 30 Jul 2019 10:25:01 -0400 Subject: [bug#36856] build: Add julia-build-system Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:60524) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsT2r-0007vi-DQ for guix-patches@gnu.org; Tue, 30 Jul 2019 10:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsT2q-0005la-HJ for guix-patches@gnu.org; Tue, 30 Jul 2019 10:24:05 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:54280) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hsT2p-0005hU-WE for guix-patches@gnu.org; Tue, 30 Jul 2019 10:24:04 -0400 Date: Tue, 30 Jul 2019 16:23:47 +0200 In-Reply-To: <87sgqn629k.fsf@elephly.net> References: <87sgqn629k.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Julien Lepiller Message-ID: <1DBAF4CE-8BA5-43EF-9CFE-5A73FB8118EB@lepiller.eu> 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: 36856@debbugs.gnu.org, rekado@elephly.net, anothersms@gmail.com Le 30 juillet 2019 16:11:19 GMT+02:00, Ricardo Wurmus a =C3=A9crit : > >Nicol=C3=B2 Balzarotti writes: > >> 3=2E By adding a simple startup=2Ejl script, inspired by what emacs doe= s=2E >This >> is simplified so I'm not sure it works for every corner case=2E >> #+begin_src julia >> let paths =3D [expanduser("~/=2Eguix-profile"), >"/run/current-system/profile"] >> ("GUIX_ENVIRONMENT" in keys(ENV)) && push!(paths, >> ENV["GUIX_ENVIRONMENT"]) >> empty!(LOAD_PATH) >> push!=2E(Ref(LOAD_PATH), joinpath=2E(paths, "share/julia/packages/"= )) >> push!(LOAD_PATH, "@stdlib") >> push!=2E(Ref(DEPOT_PATH), joinpath=2E(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?