help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling gpg encrypt inside mixed-text-file


From: Reza Housseini
Subject: Re: Calling gpg encrypt inside mixed-text-file
Date: Mon, 17 Oct 2022 09:31:48 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1

You'll need two things; ``computed-file'', and the ``(ice-9 popen)'' standard
library module. ``computed-file'' allows you to build a file-like object from
arbitrary code. Have a look here for an example from my configuration,

   https://git.sr.ht/~unmatched-paren/conf/tree/root/item/home.scm#L168

which removes all ``//'' comments from ``waybar.json'' before writing the
result to the store path.

Also see the Guix and Guile manuals on these two subjects,

   ``(ice-9 popen)'': 
https://www.gnu.org/software/guile/manual/html_node/Pipes.html
   ``computed-file'': 
https://guix.gnu.org/manual/en/html_node/G_002dExpressions.html#index-computed_002dfile



Thanks for your pointers, will try if I can fiddle something together!

Best,
Reza

--
Reza Housseini

This message is signed with my GnuPG key:

    C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52

Attachment: OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]