From: Pierre Neidhardt <mail@ambrevar.xyz>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: Install doc + templates overhaul
Date: Mon, 21 Jan 2019 22:08:01 +0100 [thread overview]
Message-ID: <87zhrtk9ce.fsf@ambrevar.xyz> (raw)
In-Reply-To: <874la2ksx6.fsf@ambrevar.xyz>
[-- Attachment #1: Type: text/plain, Size: 1029 bytes --]
I'm trying to set the default for user. Here is the record from
installer/user.scm:
--8<---------------cut here---------------start------------->8---
(define-record-type* <user>
user make-user
user?
(name user-name)
(group user-group
(default "users"))
(home-directory user-home-directory))
--8<---------------cut here---------------end--------------->8---
The following does not work:
--8<---------------cut here---------------start------------->8---
(define-record-type* <user>
user make-user
user?
(name user-name)
(group user-group
(default "users"))
(home-directory user-home-directory
(default (string-append "/home/" name))))
--8<---------------cut here---------------end--------------->8---
The define-record-type* does not seem to allow the record field initialization
to refer to itself.
Is there a way around it?
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2019-01-21 21:08 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-19 18:28 Install doc + templates overhaul Pierre Neidhardt
2019-01-21 13:56 ` Ludovic Courtès
2019-01-21 14:04 ` Pierre Neidhardt
2019-01-21 14:05 ` Pierre Neidhardt
2019-01-21 21:08 ` Pierre Neidhardt [this message]
2019-01-21 21:13 ` Pierre Neidhardt
2019-01-22 13:20 ` ‘nss-certs’ missing in the installation image Ludovic Courtès
2019-01-22 14:01 ` Pierre Neidhardt
2019-01-23 9:00 ` Giovanni Biscuolo
2019-01-23 9:42 ` Pierre Neidhardt
2019-01-23 10:59 ` Ludovic Courtès
2019-01-23 11:22 ` Pierre Neidhardt
2019-01-23 14:01 ` swedebugia
2019-01-26 10:17 ` Pierre Neidhardt
2019-01-26 20:53 ` Amin Bandali
2019-01-28 22:48 ` Pierre Neidhardt
2019-01-29 8:33 ` Ludovic Courtès
2019-01-29 11:09 ` Pierre Neidhardt
2019-02-08 14:31 ` Pierre Neidhardt
2019-02-08 21:42 ` Ludovic Courtès
2019-02-10 14:22 ` Pierre Neidhardt
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=87zhrtk9ce.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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).