Re: Prepend string to "file" in G-expression

2024-12-12 Thread Marc Coquand
That works well, thanks! -- Marc On Wed, Dec 11 2024, Felix Lechner wrote: > Hi Marc, > > On Wed, Dec 11 2024, Marc Coquand wrote: > >> Essentially what I'm trying to do is build a program that sends an >> email, and then package it in Guix. > > Maybe you could pipe an appropriately formatted

Re: Prepend string to "file" in G-expression

2024-12-11 Thread Felix Lechner via
Hi Marc, On Wed, Dec 11 2024, Marc Coquand wrote: > Essentially what I'm trying to do is build a program that sends an > email, and then package it in Guix. Maybe you could pipe an appropriately formatted text to 'sendmail'? Here is an example. [1] Kind regards Felix [1] https://codeberg.org/

Re: Prepend string to "file" in G-expression

2024-12-11 Thread Marc Coquand
Heya, Essentially what I'm trying to do is build a program that sends an email, and then package it in Guix. The reason is that laminar (a ci tool) expects a script to run after each job. My initial idea was to build a shell-script with Guile, but I thought it might be easier to build a Guile-

Prepend string to "file" in G-expression

2024-12-10 Thread Marc Coquand
Heya, I'm trying to grok g-expressions and setting up a small guile program that sends an email. I have the following (define notify-mail-gexp (with-imported-modules '((guix build utils)) #~(begin (use-modules (guix build utils)) (let* ((msmtp-bin #$(file-append ms