[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56114: Guix does not have a documented general and practical procedu
From: |
Ludovic Courtès |
Subject: |
bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string. |
Date: |
Mon, 04 Jul 2022 22:13:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hello!
zimoun <zimon.toutoune@gmail.com> 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, especially when,
>
> scheme@(guix-user)> ,lower (mixed-text-file "foo" "bar")
> $6 = #<derivation /gnu/store/40982nzm6c7n4yawvs3m39k313jsrl80-foo.drv =>
> /gnu/store/raihpcxdz6wmdpyj67bwd4bjk02xq0x3-foo 7f6f9bc5cd20>
> scheme@(guix-user)> ,build (mixed-text-file "foo" "bar")
> $7 = "/gnu/store/raihpcxdz6wmdpyj67bwd4bjk02xq0x3-foo"
Right, that’s because ‘plain-file’ lowers directly to a store item, not
to a derivation.
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 and it doesn’t hide any
subtlety.
>> +(define* (evaluate/print-with-store mvalue #:key build?)
>> + "Run monadic value MVALUE in the store monad and print its value."
>
> I do not know if it makes sense to have a list of monadic values,
> allowing something like:
>
> ,build hello coreutils
I don’t think the REPL can support this syntax, but we could add support
for:
,build (list hello coreutils)
Thanks for your feedback!
Ludo’.
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., Ludovic Courtès, 2022/07/03
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., zimoun, 2022/07/04
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string.,
Ludovic Courtès <=
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., zimoun, 2022/07/04
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., Ludovic Courtès, 2022/07/05
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., zimoun, 2022/07/05
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., Joshua Branson, 2022/07/10
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., Ludovic Courtès, 2022/07/15
- bug#56114: Guix does not have a documented general and practical procedure for lowering a single lowerable object to the /gnu/store/... string., Maxime Devos, 2022/07/19