;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2020, 2022 Mathieu Othacehe ;;; ;;; 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 . (define-module (gnu image) #:use-module (guix platform) #:use-module (guix records) #:use-module (guix diagnostics) #:use-module (guix i18n) #:use-module (srfi srfi-1) #:use-module (srfi srfi-34) #:use-module (srfi srfi-35) #:export (partiti
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-17 22:49:12 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-01-17 22:49:12 +0100
commite6ab20f71d9fd4bb49ad0d004262f787552e6c14 (patch)
tree2ae6298dceaac6f97c10db4fb9328d1b3080a8cb /tests/snix.scm
parent60ceff7ef530dd9ac8d9e9e65dfead0f3b8a22f8 (diff)
downloadguix-e6ab20f71d9fd4bb49ad0d004262f787552e6c14.tar.gz
guix-e6ab20f71d9fd4bb49ad0d004262f787552e6c14.zip
gnu: emacs-matrix-client: Update to 2a95a1f.
* gnu/packages/emacs-xyz.scm (emacs-matrix-client): Update to 2a95a1f. [propagated-inputs]: Add `emacs-anaphora'.
Diffstat (limited to 'tests/snix.scm')
0 files changed, 0 insertions, 0 deletions
ype)) (partitions image-partitions ;list of (default '())) (compression? image-compression? ;boolean (default #true)) (volatile-root? image-volatile-root? ;boolean (default #true)) (shared-store? image-shared-store? ;boolean (default #false)) (shared-network? image-shared-network? ;boolean (default #false)) (substitutable? image-substitutable? ;boolean (default #true))) ;;; ;;; Image type. ;;; ;; The role of this record is to provide a constructor that is able to turn an ;; record into an record. Some basic ;; records are defined in the (gnu system image) module. They are able to ;; turn an record into an EFI or an ISO 9660 bootable ;; image, a Docker image or even a QCOW2 image. ;; ;; Other records are defined in the (gnu system images ...) ;; modules. They are dedicated to specific machines such as Novena and Pine64 ;; SoC boards that require specific images. ;; ;; All the available records are collected by the 'image-modules' ;; procedure. This allows the "guix system image" command to turn a given ;; record into an image, thanks to the specified ;; . In that case, the look up is done using the ;; name field of the record. (define-record-type* image-type make-image-type image-type? (name image-type-name) ;symbol (constructor image-type-constructor)) ; -> ;;; ;;; Image creation. ;;; (define* (os->image os #:key type) "Use the image constructor from TYPE, an record to turn the given OS, an record into an image and return it." (let ((constructor (image-type-constructor type))) (constructor os))) (define* (os+platform->image os platform #:key type) "Use the image constructor from TYPE, an record to turn the given OS, an record into an image targeting PLATFORM, a record and return it." (image (inherit (os->image os #:type type)) (platform platform)))