Re: Scripting guix in guile (Konrad Hinsen)

2019-09-07 Thread Konrad Hinsen
On 06/09/2019 12:28, Tobias Geerinckx-Rice wrote: Konrad Hinsen 写道: Is there any reason why this isn't defined by default? That would solve portability problems for lots of scripts, and I don't see any disadvantage caused by this link. It is now! Great, thanks! Konrad

Re: Scripting guix in guile (Konrad Hinsen)

2019-09-06 Thread Gary Johnson
Hi Konrad, Fair enough. I was pleasantly surprised to discover that trick while digging through the Guix manual several months ago. In the Guix info pages, the documentation for it can be found under this path: System Configuration -> Services -> Base Services -> extra-special-file I'm not one o

Re: Scripting guix in guile (Konrad Hinsen)

2019-09-06 Thread Tobias Geerinckx-Rice
Konrad, Konrad Hinsen 写道: Is there any reason why this isn't defined by default? That would solve portability problems for lots of scripts, and I don't see any disadvantage caused by this link. It is now! Kind regards, T G-R signature.asc Description: PGP signature

Re: Scripting guix in guile (Konrad Hinsen)

2019-09-06 Thread Konrad Hinsen
Hi Gary, > Just in case you hadn't thought of this yet, you can ensure that > /usr/bin/env exists on any Guix system by consing the following entry > onto the list of services under your operating-system definition. I hadn't thought of this for the simple reason that I didn't know about this mech

Re: Scripting guix in guile (Konrad Hinsen)

2019-09-05 Thread Gary Johnson
your Subject line so it is more specific > than "Re: Contents of Help-Guix digest..." > > > Today's Topics: > >1. Report on environment variable issues (Tirifto) >2. Re: rust:cargo (libcurl) vs. CURL_CA_BUNDLE (David Loyall) >3. Re: adding environment va

Re: Scripting guix in guile

2019-09-04 Thread Konrad Hinsen
Hi Jesse and Ludo, Jesse Gibbons writes: > 1. Tell your audience to call "guile " when running the > script. That's very reasonable, but... > This does not garuntee guix is in their GUILE_LOAD_PATH though, so you > will either need to tell them to add a segment to .bashrc to add the > guix sou

Re: Scripting guix in guile

2019-09-02 Thread Ludovic Courtès
Hi Konrad, Konrad Hinsen skribis: > The problems I see are > > 1. What to put into the #! line to locate Guile. On Guix System #!/run/current-system/profile/bin/guile is very likely to work :-), but on other systems you could use “#!/usr/bin/env guile” I suppose. > 2. How to construct the lo

Re: Scripting guix in guile

2019-09-01 Thread Jesse Gibbons
On Sun, 2019-09-01 at 10:15 +0200, Konrad Hinsen wrote: > Hi Jesse, > > First of all, thanks for your suggestions! > > > > 1. What to put into the #! line to locate Guile. > > > > I don't think you need a shebang to script guile. If you do, you > > could > > always make a guix package for the s

Re: Scripting guix in guile

2019-09-01 Thread Konrad Hinsen
Hi Jesse, First of all, thanks for your suggestions! >> 1. What to put into the #! line to locate Guile. > I don't think you need a shebang to script guile. If you do, you could > always make a guix package for the scripts, and that will fix > everything in the patch-shebangs phase. Right, pack

Re: Scripting guix in guile

2019-08-31 Thread Jesse Gibbons
On Sat, 2019-08-31 at 11:38 -0600, Jesse Gibbons wrote: > On Sat, 2019-08-31 at 19:03 +0200, Konrad Hinsen wrote: > > Hi everyone, > > > > I'd like to write Guile scripts that inspect Guix, for example > > analyze > > the packages is my profile. That turned out to be a lot more > > difficult > > t

Re: Scripting guix in guile

2019-08-31 Thread Jesse Gibbons
On Sat, 2019-08-31 at 19:03 +0200, Konrad Hinsen wrote: > Hi everyone, > > I'd like to write Guile scripts that inspect Guix, for example > analyze > the packages is my profile. That turned out to be a lot more > difficult > than I expected, and in fact I haven't found a satisfying general > solut

Scripting guix in guile

2019-08-31 Thread Konrad Hinsen
Hi everyone, I'd like to write Guile scripts that inspect Guix, for example analyze the packages is my profile. That turned out to be a lot more difficult than I expected, and in fact I haven't found a satisfying general solution yet, meaning a script that I could publish in such a way that any Gu