From: Reza Housseini <reza.housseini@gmail.com>
To: "(" <paren@disroot.org>, help-guix@gnu.org
Subject: Re: Calling gpg encrypt inside mixed-text-file
Date: Mon, 17 Oct 2022 09:31:48 +0200 [thread overview]
Message-ID: <c7c0b2f3-74e8-5273-c9e1-18b733d85324@gmail.com> (raw)
In-Reply-To: <CNLIQGRCTQ3M.2BNL49XT7A9CV@guix-framework>
[-- Attachment #1.1.1: Type: text/plain, Size: 917 bytes --]
> 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 #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 15557 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2022-10-17 7:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 8:40 Calling gpg encrypt inside mixed-text-file Reza Housseini
2022-10-14 8:55 ` (
2022-10-17 7:31 ` Reza Housseini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c7c0b2f3-74e8-5273-c9e1-18b733d85324@gmail.com \
--to=reza.housseini@gmail.com \
--cc=help-guix@gnu.org \
--cc=paren@disroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).