bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-19 Thread Maxime Devos
Ludovic Courtès schreef op vr 15-07-2022 om 17:41 [+0200]: > Hi! > > Thanks all for your support.  :-) > > I’ve pushed these new REPL commands as > 4ce7f1fb24a111f3e92d5b889d1271bebf109d09, including a new “Using Guix > Interactively” section in the manual to document it.  Feedback welcome! > >

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-15 Thread Ludovic Courtès
Hi! Thanks all for your support. :-) I’ve pushed these new REPL commands as 4ce7f1fb24a111f3e92d5b889d1271bebf109d09, including a new “Using Guix Interactively” section in the manual to document it. Feedback welcome! I’m sure we can add more REPL commands as we better see what useful

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-10 Thread Joshua Branson via Bug reports for GNU Guix
Whoops. I sent my original message to the list, not directly to ya'll. ,build and ,lower are awesome! I reccomend that we add ludo's proposed patch into guix. It's awesome! Thanks, Joshua

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-07 Thread jbranso--- via Bug reports for GNU Guix
I was playing around with this today, and it is awesome! I think it should be merged, because it has already helped me with my opensmtpd records project. Thanks, Joshua

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-05 Thread zimoun
Hi, On Tue, 5 Jul 2022 at 09:57, Ludovic Courtès wrote: > I don’t take comments about unrelated things. ;-) So one more. ;-) > As someone who writes gexps and manipulates “file-like objects”, it > doesn’t matter whether a thing lowers to a derivation or to a plain > store item. What

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-05 Thread Ludovic Courtès
Hi, zimoun skribis: > My comment was about an unrelated thing. I don’t take comments about unrelated things. ;-) > Well, I do not use every day G-exp nor ’plain-file’ and the like. The > interface appears to me unexpected each time I use it but hey I can > live with it. :-) However, the

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-04 Thread zimoun
Hi, On Mon, 04 Jul 2022 at 22:13, Ludovic Courtès wrote: > I explicitly made “,build” hide that difference; I thought one would > just want “,build” to do the right thing and display the resulting store > item regardless of that kind of detail. > > Conversely, “,lower” is for die-hard hackers

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-04 Thread Ludovic Courtès
Hello! zimoun skribis: > However, note that, > > scheme@(guix-user)> ,build (plain-file "foo" "bar") > $1 = "/gnu/store/798sxvdgr0680czdggbls7rd3sfwk2yx-foo" > scheme@(guix-user)> ,lower (plain-file "foo" "bar") > $2 = "/gnu/store/798sxvdgr0680czdggbls7rd3sfwk2yx-foo" > > > which is confusing,

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-04 Thread zimoun
Hi, If I read correctly, this snippet from the manual, >> scheme@(guile-user)> ,run-in-store (package->derivation hello) >> $1 = # ...> becomes scheme@(guile-user)> ,lower hello and this snippet, > scheme@(guix-user)> ,run-in-store (lower-object (plain-file "foo" "bar")) > $15

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-07-03 Thread Ludovic Courtès
Hi Maxime, Maxime Devos skribis: > Seems like we are missing a general & documented & simple to use > 'lower-object-completely' (or maybe 'compile-object'?) procedure for > this ... And maybe also a ,build-object REPL command? How about the attached patch? Sample session:

bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.

2022-06-20 Thread Maxime Devos
Variants of this appear repeatedly on #guix every now and then, and also sometimes unasked by me not posted anywhere. How do I run compile a package, computed-file or more generally a lowerable object from the REPL? Let's look in the manual: > Note that the ‘(guix monad-repl)’ module extends