Brian Cully schreef op zo 24-04-2022 om 19:27 [-0400]:
> --8<---cut here---start->8---
> (file-append #~#$gcc:lib “/lib”)
> --8<---cut here---end--->8---
>
> The “correct” way is this:
> --8<---cut here--
Maxime Devos writes:
Nowhere. I tried implementing 'output', and noticed I just
ended up
with something equivalent to a simple call to 'gexp-input'
(hence,
‘this thing already exists’). 'gexp-input' can be found in
(guix
gexp).
I finally had a chance to mess around with this, and it
d
Maxime Devos writes:
> Proposed implementation:
>
> (define (output thing output)
> (gexp-input package output))
>
> Seems like this thing already exists, it's just not well-known and not
> documented in the manual.
Where is this in the code? I couldn’t find it myself (grepping
for t
Maxime Devos writes:
> Do you mean #~#$fa:output here?
Yes, I did. Sorry, my fingers have minds of their own, and the
gexp syntax, in particular, really runs counter to their memory.
>> (file-append pkg:output "/path")
>
> This one is only possible if file-append becomes syntax instea
Brian Cully schreef op za 23-04-2022 om 16:40 [-0400]:
> Where is this in the code?
Nowhere. I tried implementing 'output', and noticed I just ended up
with something equivalent to a simple call to 'gexp-input' (hence,
‘this thing already exists’). 'gexp-input' can be found in (guix
gexp).
Brian Cully schreef op za 23-04-2022 om 13:29 [-0400]:
> I like this, and would prefer it over the ‘list’ proposal. I’m
> not sure how to implement it given my limited knowledge of Guix
> internals, though. Special-casing a list inside of file-append was
> fairly straightforward and solved th
Brian Cully schreef op za 23-04-2022 om 12:03 [-0400]:
> I was having a similar issue, so I dug into this issue a bit,
> and it turns out that you *can* select an output from file-append, but
> the syntax is a bit wonky:
>
> ---[snip]---
> (let ((fa (file-append pkg "/path")))
> $~$#fa:out
I was having a similar issue, so I dug into this issue a bit,
and it turns out that you *can* select an output from file-append, but
the syntax is a bit wonky:
---[snip]---
(let ((fa (file-append pkg "/path")))
$~$#fa:output)
---[snip]---
I’ve tried to remove the let:
---[sni
Hi Jakub!
Jakub Kądziołka writes:
> Consider this minimal operating-system definition:
>
> (use-modules (gnu))
> (use-package-modules gcc)
>
> (operating-system
> (host-name "test")
> (timezone "UTC")
> (bootloader (bootloader-configuration
> (bootloader grub-efi-bootloader
Consider this minimal operating-system definition:
(use-modules (gnu))
(use-package-modules gcc)
(operating-system
(host-name "test")
(timezone "UTC")
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(target "/boot/efi")))
(file-system
10 matches
Mail list logo