all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Attila Lendvai <attila@lendvai.name>
To: Tomas Volf <~@wolfsden.cz>
Cc: guix-devel@gnu.org
Subject: Re: Proposal for removing some serialization limitations of define-configuration
Date: Mon, 24 Jun 2024 06:25:03 +0000	[thread overview]
Message-ID: <FYa4dWItXQhoPzrFL7bUSSe4VBBXiW3FyGbcZZqVpoVb21UVztdmWYrrGoTyCGEAXdsD2DNCdQEBLlyUOxDPHZj5QcLs4xg71lR099ZqvXs=@lendvai.name> (raw)
In-Reply-To: <ZngLGtANMtqCPbtg@ws>

> authority letsencrypt {
> api url "https://acme-v02.api.letsencrypt.org/directory"
> account key "/some/path.pem" rsa
> contact "mailto:who@knows"
> }


i have no time to verify this right now, but i think you should be able to write only the header and the wrapper in your custom serializer, and then iterate through the remaining fields of the config record, i.e. sans the `name` field.

you can inspect the current serializer for how to iterate through the fields, or better yet, how to call it recursively with the remaining fields.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Government does not grow by seizing our freedoms, but by assuming our responsibilities.”
	— Michael Cloud



      parent reply	other threads:[~2024-06-24  6:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23 11:46 Proposal for removing some serialization limitations of define-configuration Tomas Volf
2024-06-23 16:37 ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2024-06-24  6:25 ` Attila Lendvai [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='FYa4dWItXQhoPzrFL7bUSSe4VBBXiW3FyGbcZZqVpoVb21UVztdmWYrrGoTyCGEAXdsD2DNCdQEBLlyUOxDPHZj5QcLs4xg71lR099ZqvXs=@lendvai.name' \
    --to=attila@lendvai.name \
    --cc=guix-devel@gnu.org \
    --cc=~@wolfsden.cz \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.