installer: Reduce height of the help window.
[jackhill/guix/guix.git] / etc / release-manifest.scm
CommitLineData
f292c501
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2020 Ludovic Courtès <ludo@gnu.org>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19;;; This file returns a manifest containing release-critical bit, for all the
20;;; supported architectures and cross-compilation targets.
21
22(use-modules (gnu packages)
23 (guix packages)
24 (guix profiles)
25 ((gnu ci) #:select (%cross-targets))
d8c8bfcc 26 (guix utils)
f292c501
LC
27 (srfi srfi-1)
28 (srfi srfi-26))
29
30(define* (package->manifest-entry* package system
31 #:key target)
32 "Return a manifest entry for PACKAGE on SYSTEM, optionally cross-compiled to
33TARGET."
34 (manifest-entry
35 (inherit (package->manifest-entry package))
36 (name (string-append (package-name package) "." system
37 (if target
38 (string-append "." target)
39 "'")))
40 (item (with-parameters ((%current-system system)
41 (%current-target-system target))
42 package))))
43
44(define %base-packages
45 ;; Packages that must be substitutable on all the platforms Guix supports.
46 (map specification->package
47 '("bootstrap-tarballs" "gcc-toolchain" "nss-certs"
48 "openssh" "emacs" "vim" "python" "guile" "guix")))
49
50(define %system-packages
51 ;; Key packages proposed by the Guix System installer.
52 (map specification->package
53 '("xorg-server" "xfce" "gnome" "mate" "enlightenment"
54 "openbox" "awesome" "i3-wm" "ratpoison"
55 "xlockmore" "slock" "libreoffice"
56 "connman" "network-manager" "network-manager-applet"
57 "openssh" "ntp" "tor"
58 "linux-libre" "grub-hybrid"
59 ;; FIXME: Add IceCat when Rust is available on i686.
60 ;;"icecat"
61 )))
62
63(define %packages-to-cross-build
64 ;; Packages that must be cross-buildable from x86_64-linux.
65 (cons (@ (gnu packages gcc) gcc)
66 (map specification->package
67 '("coreutils" "grep" "sed" "findutils" "diffutils" "patch"
68 "gawk" "gettext" "gzip" "xz"
69 "hello" "guile@2.2" "zlib"))))
70
d8c8bfcc
LC
71(define %packages-to-cross-build-for-mingw
72 ;; Many things don't build for MinGW. Restrict to what's known to work.
73 (map specification->package '("hello")))
74
f292c501
LC
75(define %cross-bootstrap-targets
76 ;; Cross-compilation triplets for which 'bootstrap-tarballs' must be
77 ;; buildable.
78 '("i586-pc-gnu"
79 "arm-linux-gnueabihf"
80 "aarch64-linux-gnu"))
81
82\f
83;;;
84;;; Manifests.
85;;;
86
87(define %base-manifest
88 (manifest
89 (append-map (lambda (system)
90 (map (cut package->manifest-entry* <> system)
91 %base-packages))
92 %hydra-supported-systems)))
93
94(define %cross-manifest
95 (manifest
96 (append-map (lambda (target)
97 (map (cut package->manifest-entry* <> "x86_64-linux"
98 #:target target)
d8c8bfcc
LC
99 (if (target-mingw? target)
100 %packages-to-cross-build-for-mingw
101 %packages-to-cross-build)))
102 ;; XXX: Important bits like libsigsegv and libffi don't support
103 ;; RISCV at the moment, so don't require RISCV support.
104 (delete "riscv64-linux-gnu" %cross-targets))))
f292c501
LC
105
106(define %cross-bootstrap-manifest
107 (manifest
108 (map (lambda (target)
109 (package->manifest-entry*
110 (specification->package "bootstrap-tarballs")
111 "x86_64-linux" #:target target))
112 %cross-bootstrap-targets)))
113
114;; Return the union of all three manifests.
115(concatenate-manifests (list %base-manifest
116 %cross-manifest
117 %cross-bootstrap-manifest))