gnu: Add cl-inferior-shell.
[jackhill/guix/guix.git] / gnu / installer / record.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2018, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
3 ;;; Copyright © 2020 Florian Pelz <pelzflorian@pelzflorian.de>
4 ;;;
5 ;;; This file is part of GNU Guix.
6 ;;;
7 ;;; GNU Guix is free software; you can redistribute it and/or modify it
8 ;;; under the terms of the GNU General Public License as published by
9 ;;; the Free Software Foundation; either version 3 of the License, or (at
10 ;;; your option) any later version.
11 ;;;
12 ;;; GNU Guix is distributed in the hope that it will be useful, but
13 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;;; GNU General Public License for more details.
16 ;;;
17 ;;; You should have received a copy of the GNU General Public License
18 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20 (define-module (gnu installer record)
21 #:use-module (guix records)
22 #:use-module (srfi srfi-1)
23 #:export (<installer>
24 installer
25 make-installer
26 installer?
27 installer-name
28 installer-init
29 installer-exit
30 installer-exit-error
31 installer-final-page
32 installer-keymap-page
33 installer-locale-page
34 installer-menu-page
35 installer-network-page
36 installer-substitutes-page
37 installer-timezone-page
38 installer-hostname-page
39 installer-user-page
40 installer-partition-page
41 installer-services-page
42 installer-welcome-page
43 installer-parameters-menu
44 installer-parameters-page))
45
46 \f
47 ;;;
48 ;;; Installer record.
49 ;;;
50
51 ;; The <installer> record contains pages that will be run to prompt the user
52 ;; for the system configuration. The goal of the installer is to produce a
53 ;; complete <operating-system> record and install it.
54
55 (define-record-type* <installer>
56 installer make-installer
57 installer?
58 ;; symbol
59 (name installer-name)
60 ;; procedure: void -> void
61 (init installer-init)
62 ;; procedure: void -> void
63 (exit installer-exit)
64 ;; procedure (key arguments) -> void
65 (exit-error installer-exit-error)
66 ;; procedure void -> void
67 (final-page installer-final-page)
68 ;; procedure (layouts context) -> (list layout variant options)
69 (keymap-page installer-keymap-page)
70 ;; procedure: (#:key supported-locales iso639-languages iso3166-territories)
71 ;; -> glibc-locale
72 (locale-page installer-locale-page)
73 ;; procedure: (steps) -> step-id
74 (menu-page installer-menu-page)
75 ;; procedure void -> void
76 (network-page installer-network-page)
77 ;; procedure void -> void
78 (substitutes-page installer-substitutes-page)
79 ;; procedure (zonetab) -> posix-timezone
80 (timezone-page installer-timezone-page)
81 ;; procedure void -> void
82 (hostname-page installer-hostname-page)
83 ;; procedure void -> void
84 (user-page installer-user-page)
85 ;; procedure void -> void
86 (partition-page installer-partition-page)
87 ;; procedure void -> void
88 (services-page installer-services-page)
89 ;; procedure (logo) -> void
90 (welcome-page installer-welcome-page)
91 ;; procedure (menu-proc) -> void
92 (parameters-menu installer-parameters-menu)
93 ;; procedure (keyboard-layout-selection) -> void
94 (parameters-page installer-parameters-page))