bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-24 Thread Maxime Devos
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--

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-24 Thread Brian Cully
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Brian Cully
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Brian Cully
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Maxime Devos
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).

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Maxime Devos
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Maxime Devos
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2022-04-23 Thread Brian Cully
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2021-04-12 Thread Maxim Cournoyer
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

bug#42164: Combining file-append with gexps results in incomprehensible errors

2020-07-02 Thread Jakub Kądziołka
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