janneke pushed a commit to branch wip-full-source-bootstrap in repository guix.
commit 97efd78fc20ea48bb3960d40bd7c84ad5dedd6cd Author: Jan (janneke) Nieuwenhuizen <[email protected]> AuthorDate: Sat Jan 2 09:40:58 2021 +0100 commencement: Add bootstrap-seeds. * gnu/packages/commencement.scm (bootstrap-seeds): New variable. --- gnu/packages/commencement.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 432910d..7a79801 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2014, 2015, 2017 Mark H Weaver <[email protected]> ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <[email protected]> ;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]> -;;; Copyright © 2018, 2019, 2020 Jan (janneke) Nieuwenhuizen <[email protected]> +;;; Copyright © 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen <[email protected]> ;;; Copyright © 2019, 2020 Marius Bakke <[email protected]> ;;; Copyright © 2020 Timothy Sample <[email protected]> ;;; Copyright © 2020 Guy Fleury Iteriteka <[email protected]> @@ -258,6 +258,46 @@ pure Scheme to Tar and decompression in one easy step.") ("bootar" ,bootar) ("guile" ,%bootstrap-guile))) +(define bootstrap-seeds + (package + (name "bootstrap-seeds") + (version "1.0.0") + (source + (bootstrap-origin + (origin + (method url-fetch) + (uri (string-append + "https://lilypond.org/janneke/guix/20210101/" + "bootstrap-seeds-1.0.0.tar.gz")) + (sha256 + (base32 + "0scz2bx8fd8c821h6y1j3x6ywgxxns7iinyn9z32dnkiacfdcpfn"))))) + (native-inputs `(("bootar" ,bootar))) + (build-system trivial-build-system) + (arguments + `(#:guile ,%bootstrap-guile + #:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((source (assoc-ref %build-inputs "source")) + (tar (assoc-ref %build-inputs "bootar")) + (out (assoc-ref %outputs "out"))) + (setenv "PATH" (string-append tar "/bin:")) + (invoke "tar" "xvf" source) + (mkdir-p out) + (copy-recursively "bootstrap-seeds" out) + #t)))) + (home-page "https://github.com/oriansj/bootstrap-seeds") + (synopsis "The initial bootstrap seeds: 357-byte hex0 and kaem shell") + (description + "A prebuilt version of the initial bootstrap seeds. It contains a +hex0-seed and an optional kaem-minimal shell. The size of the hex0 seeds are +for knight: 250 bytes, x86-linux:(357 bytes, x86_64-linux: 431 bytes, and +aarch64-linux 526 bytes. These can be used to build stage0: hex0, hex1, hex2, +M1, and M2-Planet.") + (license license:gpl3+))) + (define %bootstrap-mes-rewired (package (inherit mes)
