Re: Building packages in REPL

2021-03-20 Thread Xinglu Chen
On Fri, Jul 24 2020, Ludovic Courtès wrote: > (guix scripts) has a high-level ‘build-package’ procedure (initially > written for Emacs-Guix) that can be used like this: > > --8<---cut here---start->8--- > $ guix repl > GNU Guile 3.0.4 > Copyright (C) 1995-2020

Re: Building packages in REPL

2020-07-27 Thread zimoun
Hi Ludo’, On Fri, 24 Jul 2020 at 16:38, Ludovic Courtès wrote: > (guix scripts) has a high-level ‘build-package’ procedure (initially > written for Emacs-Guix) that can be used like this: > > --8<---cut here---start->8--- > $ guix repl [...] >

Re: Building packages in REPL

2020-07-27 Thread Pierre Neidhardt
Hi! Thank you Ludovic for sharing these REPL commands. I cannot build packages this way in Geiser though, because unless a substitute is available, the Geiser buffer chokes on the very large output. Does anyone know how to work around this limitation? Does anyone build Guix packages from the

Re: Building packages in REPL

2020-07-24 Thread Ludovic Courtès
Hi, zimoun skribis: > On Fri, 26 Jun 2020 at 06:17, Julien Lepiller wrote: > >> One way to do this with the guix API is to get the derivation, then build it: >> >> (use-modules (guix derivations) (guix store) (gnu packages bash)) >> (define package bash-minimal) >> (define store

Re: Building packages in REPL

2020-06-30 Thread Anthony Quizon
Cool thanks. I'll try these out On Saturday, June 27, 2020, Efraim Flashner wrote: > On Fri, Jun 26, 2020 at 12:00:17PM +0200, zimoun wrote: > > Dear, > > > > On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen > wrote: > > > Anthony Quizon writes: > > > > > >> Is there a way that I can build a

Re: Building packages in REPL

2020-06-26 Thread Efraim Flashner
On Fri, Jun 26, 2020 at 12:00:17PM +0200, zimoun wrote: > Dear, > > On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen > wrote: > > Anthony Quizon writes: > > > >> Is there a way that I can build a package via the repl? > > Well, it is not what you are asking I guess, but it is possible: > >

Re: Building packages in REPL

2020-06-26 Thread zimoun
Hi Julien, On Fri, 26 Jun 2020 at 06:17, Julien Lepiller wrote: > One way to do this with the guix API is to get the derivation, then build it: > > (use-modules (guix derivations) (guix store) (gnu packages bash)) > (define package bash-minimal) > (define store (open-connection)) > (define der

Re: Building packages in REPL

2020-06-26 Thread Julien Lepiller
Le 26 juin 2020 06:00:17 GMT-04:00, zimoun a écrit : >Dear, > >On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen > wrote: >> Anthony Quizon writes: >> >>> Is there a way that I can build a package via the repl? > >Well, it is not what you are asking I guess, but it is possible: >

Re: Building packages in REPL

2020-06-26 Thread zimoun
Dear, On Fri, 26 Jun 2020 at 09:25, Konrad Hinsen wrote: > Anthony Quizon writes: > >> Is there a way that I can build a package via the repl? Well, it is not what you are asking I guess, but it is possible: --8<---cut here---start->8--- $ guix repl

Re: Building packages in REPL

2020-06-26 Thread Konrad Hinsen
Anthony Quizon writes: > Is there a way that I can build a package via the repl? As far as I know, no. I have been looking for this as well, in order to make package development more interactive. > For example, > If I had a channel with a custom package in it, can I do: > > `$ guix repl -L .`

Building packages in REPL

2020-06-25 Thread Anthony Quizon
Is there a way that I can build a package via the repl? For example, If I had a channel with a custom package in it, can I do: `$ guix repl -L .` `> ,use (my-channel packages base) ` `> (build-package my-package) ;; this is the example imaginary command ` Is something like this possible? I