2018-11-16 06:43:55 -05:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
|
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu installer)
|
2018-12-05 00:57:28 -05:00
|
|
|
#:use-module (guix discovery)
|
2018-11-23 22:25:03 -05:00
|
|
|
#:use-module (guix packages)
|
|
|
|
#:use-module (guix gexp)
|
|
|
|
#:use-module (guix modules)
|
|
|
|
#:use-module (guix utils)
|
2018-11-16 06:43:55 -05:00
|
|
|
#:use-module (guix ui)
|
2018-11-23 22:25:03 -05:00
|
|
|
#:use-module ((guix self) #:select (make-config.scm))
|
|
|
|
#:use-module (gnu packages admin)
|
|
|
|
#:use-module (gnu packages base)
|
|
|
|
#:use-module (gnu packages bash)
|
|
|
|
#:use-module (gnu packages connman)
|
installer: partionment: Add encryption support.
* gnu/installer.scm (set-installer-path): Add cryptsetup.
* gnu/installer/newt/partition.scm (prompt-luks-passwords): New procedure,
(run-partioning-page): Add the possibility to set encryption to "On" on a
partition and choose a label, add a new partition scheme: "Guided - using the
entire disk with encryption", prompt for encryption passwords before
proceeding to formating.
* gnu/installer/parted.scm (<user-partition>)[crypt-label],
[crypt-password]: New fields,
(partition-description): add the encryption label,
(user-partition-description): add an encryption field,
(auto-partition): add two partitioning schemes: entire-crypted-root and
entire-crypted-root-home,
(call-with-luks-key-file): new procedure,
(user-partition-upper-path): new procedure,
(luks-format-and-open): new procedure,
(luks-close): new procedure,
(format-user-partitions): format and open luks partitions before creating
file-system.
(mount-user-partitions): use the path returned by user-partition-upper-path,
(umount-user-partitions): close the luks partitions,
(user-partition->file-system): set device field to label for luks partitions
and to uuid for the rest,
(user-partition->mapped-device): new procedure,
(user-partitions->configuration): add mapped-devices field.
2018-12-07 00:04:25 -05:00
|
|
|
#:use-module (gnu packages cryptsetup)
|
2018-12-05 00:57:28 -05:00
|
|
|
#:use-module (gnu packages disk)
|
2018-11-23 22:25:03 -05:00
|
|
|
#:use-module (gnu packages guile)
|
gnu: Move most packages from guile.scm to new module.
* gnu/packages/guile.scm (artanis, guildhall, guile-aspell, guile-bash,
guile-8sync, guile-daemon, guile-dsv, guile-fibers, guile-syntax-highlight,
guile-sjson, guile-colorized, guile-pfds, guile-aa-tree, guile-simple-zmq,
jupyter-guile-kernel, guile-sparql, guile-debbugs, guile-email,
guile-debbugs-next, guile-newt, guile-mastodon, guile-parted, guile-xosd,
guile-dbi, guile-dbd-sqlite3, guile-config, guile-hall, guile-ics, guile-wisp,
guile-sly, g-wrap, guile-miniadapton, guile-reader, guile2.2-reader,
guile-ncurses, guile-ncurses/gpm, guile-lib, guile2.0-lib, guile2.2-lib,
guile-minikanren, guile2.0-minikanren, guile2.2-minikanren, guile-irregex,
guile2.0-irregex, guile2.2-irregex, haunt, guile2.0-haunt, guile2.2-haunt,
guile-redis, guile2.0-redis, guile2.2-redis, guile-commonmark,
guile2.0-commonmark, guile2.2-commonmark, mcron, mcron2): Move these variables
from here...
* gnu/packages/guile-xyz.scm: ...to this new file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/installer.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/ci.scm,
gnu/packages/gtk.scm,
gnu/packages/guile.scm,
gnu/packages/mail.scm,
gnu/packages/package-management.scm,
gnu/packages/skribilo.scm,
gnu/packages/web.scm,
gnu/services/mcron.scm: Update module references.
2019-01-28 08:57:10 -05:00
|
|
|
#:use-module (gnu packages guile-xyz)
|
2018-11-23 22:25:03 -05:00
|
|
|
#:autoload (gnu packages gnupg) (guile-gcrypt)
|
|
|
|
#:use-module (gnu packages iso-codes)
|
|
|
|
#:use-module (gnu packages linux)
|
|
|
|
#:use-module (gnu packages ncurses)
|
|
|
|
#:use-module (gnu packages package-management)
|
|
|
|
#:use-module (gnu packages xorg)
|
|
|
|
#:use-module (ice-9 match)
|
2018-11-16 06:43:55 -05:00
|
|
|
#:use-module (srfi srfi-1)
|
2018-11-23 22:25:03 -05:00
|
|
|
#:export (installer-program))
|
2018-11-16 06:43:55 -05:00
|
|
|
|
2018-11-23 22:25:03 -05:00
|
|
|
(define not-config?
|
|
|
|
;; Select (guix …) and (gnu …) modules, except (guix config).
|
|
|
|
(match-lambda
|
|
|
|
(('guix 'config) #f)
|
|
|
|
(('guix rest ...) #t)
|
|
|
|
(('gnu rest ...) #t)
|
|
|
|
(rest #f)))
|
|
|
|
|
|
|
|
(define* (build-compiled-file name locale-builder)
|
|
|
|
"Return a file-like object that evalutes the gexp LOCALE-BUILDER and store
|
|
|
|
its result in the scheme file NAME. The derivation will also build a compiled
|
|
|
|
version of this file."
|
|
|
|
(define set-utf8-locale
|
|
|
|
#~(begin
|
|
|
|
(setenv "LOCPATH"
|
|
|
|
#$(file-append glibc-utf8-locales "/lib/locale/"
|
|
|
|
(version-major+minor
|
|
|
|
(package-version glibc-utf8-locales))))
|
|
|
|
(setlocale LC_ALL "en_US.utf8")))
|
|
|
|
|
|
|
|
(define builder
|
|
|
|
(with-extensions (list guile-json)
|
|
|
|
(with-imported-modules (source-module-closure
|
|
|
|
'((gnu installer locale)))
|
|
|
|
#~(begin
|
|
|
|
(use-modules (gnu installer locale))
|
|
|
|
|
|
|
|
;; The locale files contain non-ASCII characters.
|
|
|
|
#$set-utf8-locale
|
|
|
|
|
|
|
|
(mkdir #$output)
|
|
|
|
(let ((locale-file
|
|
|
|
(string-append #$output "/" #$name ".scm"))
|
|
|
|
(locale-compiled-file
|
|
|
|
(string-append #$output "/" #$name ".go")))
|
|
|
|
(call-with-output-file locale-file
|
|
|
|
(lambda (port)
|
|
|
|
(write #$locale-builder port)))
|
|
|
|
(compile-file locale-file
|
|
|
|
#:output-file locale-compiled-file))))))
|
|
|
|
(computed-file name builder))
|
|
|
|
|
|
|
|
(define apply-locale
|
|
|
|
;; Install the specified locale.
|
|
|
|
#~(lambda (locale-name)
|
|
|
|
(false-if-exception
|
|
|
|
(setlocale LC_ALL locale-name))))
|
|
|
|
|
|
|
|
(define* (compute-locale-step #:key
|
|
|
|
locales-name
|
|
|
|
iso639-languages-name
|
|
|
|
iso3166-territories-name)
|
|
|
|
"Return a gexp that run the locale-page of INSTALLER, and install the
|
|
|
|
selected locale. The list of locales, languages and territories passed to
|
|
|
|
locale-page are computed in derivations named respectively LOCALES-NAME,
|
|
|
|
ISO639-LANGUAGES-NAME and ISO3166-TERRITORIES-NAME. Those lists are compiled,
|
|
|
|
so that when the installer is run, all the lengthy operations have already
|
|
|
|
been performed at build time."
|
|
|
|
(define (compiled-file-loader file name)
|
|
|
|
#~(load-compiled
|
|
|
|
(string-append #$file "/" #$name ".go")))
|
|
|
|
|
|
|
|
(let* ((supported-locales #~(supported-locales->locales
|
|
|
|
#$(local-file "installer/aux-files/SUPPORTED")))
|
|
|
|
(iso-codes #~(string-append #$iso-codes "/share/iso-codes/json/"))
|
|
|
|
(iso639-3 #~(string-append #$iso-codes "iso_639-3.json"))
|
|
|
|
(iso639-5 #~(string-append #$iso-codes "iso_639-5.json"))
|
|
|
|
(iso3166 #~(string-append #$iso-codes "iso_3166-1.json"))
|
|
|
|
(locales-file (build-compiled-file
|
|
|
|
locales-name
|
|
|
|
#~`(quote ,#$supported-locales)))
|
|
|
|
(iso639-file (build-compiled-file
|
|
|
|
iso639-languages-name
|
|
|
|
#~`(quote ,(iso639->iso639-languages
|
|
|
|
#$supported-locales
|
|
|
|
#$iso639-3 #$iso639-5))))
|
|
|
|
(iso3166-file (build-compiled-file
|
|
|
|
iso3166-territories-name
|
|
|
|
#~`(quote ,(iso3166->iso3166-territories #$iso3166))))
|
|
|
|
(locales-loader (compiled-file-loader locales-file
|
|
|
|
locales-name))
|
|
|
|
(iso639-loader (compiled-file-loader iso639-file
|
|
|
|
iso639-languages-name))
|
|
|
|
(iso3166-loader (compiled-file-loader iso3166-file
|
|
|
|
iso3166-territories-name)))
|
|
|
|
#~(lambda (current-installer)
|
|
|
|
(let ((result
|
|
|
|
((installer-locale-page current-installer)
|
|
|
|
#:supported-locales #$locales-loader
|
|
|
|
#:iso639-languages #$iso639-loader
|
|
|
|
#:iso3166-territories #$iso3166-loader)))
|
2018-12-05 00:30:16 -05:00
|
|
|
(#$apply-locale result)
|
|
|
|
result))))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
(define apply-keymap
|
2018-12-05 00:36:22 -05:00
|
|
|
;; Apply the specified keymap. Use the default keyboard model.
|
2018-11-23 22:25:03 -05:00
|
|
|
#~(match-lambda
|
2018-12-05 00:36:22 -05:00
|
|
|
((layout variant)
|
|
|
|
(kmscon-update-keymap (default-keyboard-model)
|
|
|
|
layout variant))))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
(define* (compute-keymap-step)
|
|
|
|
"Return a gexp that runs the keymap-page of INSTALLER and install the
|
|
|
|
selected keymap."
|
|
|
|
#~(lambda (current-installer)
|
|
|
|
(let ((result
|
|
|
|
(call-with-values
|
|
|
|
(lambda ()
|
|
|
|
(xkb-rules->models+layouts
|
|
|
|
(string-append #$xkeyboard-config
|
|
|
|
"/share/X11/xkb/rules/base.xml")))
|
|
|
|
(lambda (models layouts)
|
|
|
|
((installer-keymap-page current-installer)
|
2018-12-05 00:36:22 -05:00
|
|
|
layouts)))))
|
2018-11-23 22:25:03 -05:00
|
|
|
(#$apply-keymap result))))
|
|
|
|
|
|
|
|
(define (installer-steps)
|
|
|
|
(let ((locale-step (compute-locale-step
|
|
|
|
#:locales-name "locales"
|
|
|
|
#:iso639-languages-name "iso639-languages"
|
|
|
|
#:iso3166-territories-name "iso3166-territories"))
|
|
|
|
(keymap-step (compute-keymap-step))
|
|
|
|
(timezone-data #~(string-append #$tzdata
|
|
|
|
"/share/zoneinfo/zone.tab")))
|
|
|
|
#~(lambda (current-installer)
|
|
|
|
(list
|
2018-12-05 00:55:03 -05:00
|
|
|
;; Welcome the user and ask him to choose between manual
|
|
|
|
;; installation and graphical install.
|
2018-11-23 22:25:03 -05:00
|
|
|
(installer-step
|
|
|
|
(id 'welcome)
|
|
|
|
(compute (lambda _
|
|
|
|
((installer-welcome-page current-installer)
|
|
|
|
#$(local-file "installer/aux-files/logo.txt")))))
|
|
|
|
|
2018-12-05 00:55:03 -05:00
|
|
|
;; Ask the user to choose a locale among those supported by
|
|
|
|
;; the glibc. Install the selected locale right away, so that
|
|
|
|
;; the user may benefit from any available translation for the
|
|
|
|
;; installer messages.
|
2018-11-23 22:25:03 -05:00
|
|
|
(installer-step
|
|
|
|
(id 'locale)
|
2018-12-05 00:30:16 -05:00
|
|
|
(description (G_ "Locale"))
|
2018-11-23 22:25:03 -05:00
|
|
|
(compute (lambda _
|
2018-12-05 00:30:16 -05:00
|
|
|
(#$locale-step current-installer)))
|
|
|
|
(configuration-formatter locale->configuration))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
;; Ask the user to select a timezone under glibc format.
|
|
|
|
(installer-step
|
|
|
|
(id 'timezone)
|
2018-12-05 00:30:16 -05:00
|
|
|
(description (G_ "Timezone"))
|
2018-11-23 22:25:03 -05:00
|
|
|
(compute (lambda _
|
|
|
|
((installer-timezone-page current-installer)
|
2018-12-05 00:30:16 -05:00
|
|
|
#$timezone-data)))
|
|
|
|
(configuration-formatter posix-tz->configuration))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
;; The installer runs in a kmscon virtual terminal where loadkeys
|
|
|
|
;; won't work. kmscon uses libxkbcommon as a backend for keyboard
|
|
|
|
;; input. It is possible to update kmscon current keymap by sending it
|
|
|
|
;; a keyboard model, layout and variant, in a somehow similar way as
|
|
|
|
;; what is done with setxkbmap utility.
|
|
|
|
;;
|
|
|
|
;; So ask for a keyboard model, layout and variant to update the
|
|
|
|
;; current kmscon keymap.
|
|
|
|
(installer-step
|
|
|
|
(id 'keymap)
|
|
|
|
(description (G_ "Keyboard mapping selection"))
|
|
|
|
(compute (lambda _
|
|
|
|
(#$keymap-step current-installer))))
|
|
|
|
|
2018-12-08 09:52:13 -05:00
|
|
|
;; Run a partitioning tool allowing the user to modify
|
2018-12-05 03:49:56 -05:00
|
|
|
;; partition tables, partitions and their mount points.
|
|
|
|
(installer-step
|
|
|
|
(id 'partition)
|
2018-12-08 09:52:13 -05:00
|
|
|
(description (G_ "Partitioning"))
|
2018-12-05 03:49:56 -05:00
|
|
|
(compute (lambda _
|
|
|
|
((installer-partition-page current-installer))))
|
|
|
|
(configuration-formatter user-partitions->configuration))
|
|
|
|
|
2018-11-23 22:25:03 -05:00
|
|
|
;; Ask the user to input a hostname for the system.
|
|
|
|
(installer-step
|
|
|
|
(id 'hostname)
|
2018-12-05 00:30:16 -05:00
|
|
|
(description (G_ "Hostname"))
|
2018-11-23 22:25:03 -05:00
|
|
|
(compute (lambda _
|
2018-12-05 00:30:16 -05:00
|
|
|
((installer-hostname-page current-installer))))
|
|
|
|
(configuration-formatter hostname->configuration))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
;; Provide an interface above connmanctl, so that the user can select
|
|
|
|
;; a network susceptible to acces Internet.
|
|
|
|
(installer-step
|
|
|
|
(id 'network)
|
|
|
|
(description (G_ "Network selection"))
|
|
|
|
(compute (lambda _
|
|
|
|
((installer-network-page current-installer)))))
|
|
|
|
|
|
|
|
;; Prompt for users (name, group and home directory).
|
|
|
|
(installer-step
|
2018-12-05 00:30:16 -05:00
|
|
|
(id 'user)
|
|
|
|
(description (G_ "User creation"))
|
|
|
|
(compute (lambda _
|
|
|
|
((installer-user-page current-installer))))
|
|
|
|
(configuration-formatter users->configuration))
|
|
|
|
|
2018-12-05 00:41:48 -05:00
|
|
|
;; Ask the user to choose one or many desktop environment(s).
|
|
|
|
(installer-step
|
|
|
|
(id 'services)
|
|
|
|
(description (G_ "Services"))
|
2018-11-23 22:25:03 -05:00
|
|
|
(compute (lambda _
|
2018-12-05 00:41:48 -05:00
|
|
|
((installer-services-page current-installer))))
|
|
|
|
(configuration-formatter
|
|
|
|
desktop-environments->configuration))
|
2018-12-05 00:30:16 -05:00
|
|
|
|
2018-12-05 00:41:48 -05:00
|
|
|
(installer-step
|
2018-12-05 00:30:16 -05:00
|
|
|
(id 'final)
|
|
|
|
(description (G_ "Configuration file"))
|
|
|
|
(compute
|
|
|
|
(lambda (result prev-steps)
|
|
|
|
((installer-final-page current-installer)
|
2018-12-05 00:41:48 -05:00
|
|
|
result prev-steps))))))))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
(define (installer-program)
|
|
|
|
"Return a file-like object that runs the given INSTALLER."
|
|
|
|
(define init-gettext
|
|
|
|
;; Initialize gettext support, so that installer messages can be
|
|
|
|
;; translated.
|
|
|
|
#~(begin
|
|
|
|
(bindtextdomain "guix" (string-append #$guix "/share/locale"))
|
|
|
|
(textdomain "guix")))
|
|
|
|
|
|
|
|
(define set-installer-path
|
|
|
|
;; Add the specified binary to PATH for later use by the installer.
|
|
|
|
#~(let* ((inputs
|
2018-12-05 00:57:28 -05:00
|
|
|
'#$(append (list bash ;start subshells
|
|
|
|
connman ;call connmanctl
|
installer: partionment: Add encryption support.
* gnu/installer.scm (set-installer-path): Add cryptsetup.
* gnu/installer/newt/partition.scm (prompt-luks-passwords): New procedure,
(run-partioning-page): Add the possibility to set encryption to "On" on a
partition and choose a label, add a new partition scheme: "Guided - using the
entire disk with encryption", prompt for encryption passwords before
proceeding to formating.
* gnu/installer/parted.scm (<user-partition>)[crypt-label],
[crypt-password]: New fields,
(partition-description): add the encryption label,
(user-partition-description): add an encryption field,
(auto-partition): add two partitioning schemes: entire-crypted-root and
entire-crypted-root-home,
(call-with-luks-key-file): new procedure,
(user-partition-upper-path): new procedure,
(luks-format-and-open): new procedure,
(luks-close): new procedure,
(format-user-partitions): format and open luks partitions before creating
file-system.
(mount-user-partitions): use the path returned by user-partition-upper-path,
(umount-user-partitions): close the luks partitions,
(user-partition->file-system): set device field to label for luks partitions
and to uuid for the rest,
(user-partition->mapped-device): new procedure,
(user-partitions->configuration): add mapped-devices field.
2018-12-07 00:04:25 -05:00
|
|
|
cryptsetup
|
2018-12-05 00:57:28 -05:00
|
|
|
dosfstools ;mkfs.fat
|
|
|
|
e2fsprogs ;mkfs.ext4
|
|
|
|
kbd ;chvt
|
|
|
|
guix ;guix system init call
|
|
|
|
util-linux ;mkwap
|
|
|
|
shadow)
|
2018-11-23 22:25:03 -05:00
|
|
|
(map canonical-package (list coreutils)))))
|
|
|
|
(with-output-to-port (%make-void-port "w")
|
|
|
|
(lambda ()
|
|
|
|
(set-path-environment-variable "PATH" '("bin" "sbin") inputs)))))
|
|
|
|
|
|
|
|
(define steps (installer-steps))
|
2018-12-05 00:57:28 -05:00
|
|
|
(define modules
|
|
|
|
(scheme-modules*
|
|
|
|
(string-append (current-source-directory) "/..")
|
|
|
|
"gnu/installer"))
|
2018-11-23 22:25:03 -05:00
|
|
|
|
|
|
|
(define installer-builder
|
2018-12-05 00:57:28 -05:00
|
|
|
(with-extensions (list guile-gcrypt guile-newt
|
|
|
|
guile-parted guile-bytestructures
|
|
|
|
guile-json)
|
2018-11-23 22:25:03 -05:00
|
|
|
(with-imported-modules `(,@(source-module-closure
|
2018-12-05 00:57:28 -05:00
|
|
|
`(,@modules
|
2018-11-23 22:25:03 -05:00
|
|
|
(guix build utils))
|
|
|
|
#:select? not-config?)
|
|
|
|
((guix config) => ,(make-config.scm)))
|
|
|
|
#~(begin
|
|
|
|
(use-modules (gnu installer record)
|
|
|
|
(gnu installer keymap)
|
|
|
|
(gnu installer steps)
|
2018-12-05 00:30:16 -05:00
|
|
|
(gnu installer final)
|
2018-12-05 00:45:53 -05:00
|
|
|
(gnu installer hostname)
|
2018-11-23 22:25:03 -05:00
|
|
|
(gnu installer locale)
|
2018-12-05 00:30:16 -05:00
|
|
|
(gnu installer parted)
|
|
|
|
(gnu installer services)
|
|
|
|
(gnu installer timezone)
|
|
|
|
(gnu installer user)
|
2018-11-23 22:25:03 -05:00
|
|
|
(gnu installer newt)
|
|
|
|
(guix i18n)
|
|
|
|
(guix build utils)
|
|
|
|
(ice-9 match))
|
|
|
|
|
|
|
|
;; Initialize gettext support so that installers can use
|
|
|
|
;; (guix i18n) module.
|
|
|
|
#$init-gettext
|
|
|
|
|
|
|
|
;; Add some binaries used by the installers to PATH.
|
|
|
|
#$set-installer-path
|
|
|
|
|
2018-12-05 00:30:16 -05:00
|
|
|
(let* ((current-installer newt-installer)
|
|
|
|
(steps (#$steps current-installer)))
|
2018-11-23 22:25:03 -05:00
|
|
|
((installer-init current-installer))
|
|
|
|
|
|
|
|
(catch #t
|
|
|
|
(lambda ()
|
|
|
|
(run-installer-steps
|
|
|
|
#:rewind-strategy 'menu
|
|
|
|
#:menu-proc (installer-menu-page current-installer)
|
2018-12-05 00:30:16 -05:00
|
|
|
#:steps steps))
|
2018-11-23 22:25:03 -05:00
|
|
|
(const #f)
|
|
|
|
(lambda (key . args)
|
2018-12-05 21:11:04 -05:00
|
|
|
(let ((error-file "/tmp/last-installer-error"))
|
|
|
|
(call-with-output-file error-file
|
|
|
|
(lambda (port)
|
|
|
|
(display-backtrace (make-stack #t) port)
|
|
|
|
(print-exception port
|
|
|
|
(stack-ref (make-stack #t) 1)
|
|
|
|
key args)))
|
|
|
|
((installer-exit-error current-installer)
|
|
|
|
error-file key args))
|
2018-12-05 00:30:16 -05:00
|
|
|
(primitive-exit 1)))
|
|
|
|
|
|
|
|
((installer-exit current-installer)))))))
|
2018-11-16 06:43:55 -05:00
|
|
|
|
2018-11-24 00:06:40 -05:00
|
|
|
(program-file
|
|
|
|
"installer"
|
|
|
|
#~(begin
|
|
|
|
;; Set the default locale to install unicode support. For
|
|
|
|
;; some reason, unicode support is not correctly installed
|
|
|
|
;; when calling this in 'installer-builder'.
|
|
|
|
(setenv "LANG" "en_US.UTF-8")
|
|
|
|
(system #$(program-file "installer-real" installer-builder)))))
|