guix-devel
[Top][All Lists]
Advanced

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

Re: Install doc + templates overhaul


From: Pierre Neidhardt
Subject: Re: Install doc + templates overhaul
Date: Mon, 21 Jan 2019 22:08:01 +0100
User-agent: mu4e 1.0; emacs 26.1

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: signature.asc
Description: PGP signature


reply via email to

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