[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/176: gnu: Add mes-boot.
From: |
Jan Nieuwenhuizen |
Subject: |
03/176: gnu: Add mes-boot. |
Date: |
Fri, 31 Aug 2018 11:20:00 -0400 (EDT) |
janneke pushed a commit to branch wip-bootstrap
in repository guix.
commit 4d7e81c37b9f4c18eda11d3cc28427fd73aef36c
Author: Jan Nieuwenhuizen <address@hidden>
Date: Sun Nov 19 22:55:41 2017 +0100
gnu: Add mes-boot.
* gnu/packages/mes.scm (mes-boot): New variable.
---
gnu/packages/mes.scm | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 1bc5cd3..5015a94 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -211,6 +211,96 @@ hex2 linker.")
(home-page "https://github.com/oriansj/mescc-tools")
(license gpl3+))))
+(define-public mes-boot
+ (let ((version "0.11")
+ (revision "0")
+ (commit "9d91e9adf50e0e5febef92f5458af0047d46404d"))
+ (package
+ (name "mes-boot")
+ (version (string-append version "-" revision "." (string-take commit 7)))
+ (synopsis "Scheme interpreter and C compiler for full source
bootstrapping")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://gitlab.com/janneke/mes"
+ "/repository/archive.tar.gz?ref="
+ commit))
+ (file-name (string-append name "-" version ".tar.xz"))
+ (sha256
+ (base32
+ "0rfz2mysg9a77fw5gkj01mm8d4vjib5ypv7zs9j2q9kmwznlp362"))))
+ (build-system trivial-build-system)
+ (supported-systems '("i686-linux" "x86_64-linux"))
+ (native-inputs
+ `(("static-bash" ,@(assoc-ref %bootstrap-inputs "bash"))
+ ("bash" ,(search-bootstrap-binary "bash" (%current-system)))
+ ("tar" ,(search-bootstrap-binary "tar" (%current-system)))
+ ("xz" ,(search-bootstrap-binary "xz" (%current-system)))
+ ("mescc-tools" ,mescc-tools-boot)
+ ("nyacc-source" ,(package-source nyacc))
+ ("mes-seed"
+ ,(origin
+ (method url-fetch)
+ (uri (string-append "https://gitlab.com/janneke/mes-seed"
+ "/repository/archive.tar.gz?ref="
+ "7ed68e26db72884dc287852e021858c28ce1c557"))
+ (file-name (string-append "mes-seed-0.11" ".tar.xz"))
+ (sha256
+ (base32
+ "1pknfxdynn8gv1xnwfwqbpgqmi0j80yvj2n20y2lq3rhmmyhz81b"))))))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+ (let* ((bash (assoc-ref %build-inputs "static-bash"))
+ (mescc-tools (assoc-ref %build-inputs "mescc-tools"))
+ (tar (assoc-ref %build-inputs "tar"))
+ (xz (assoc-ref %build-inputs "xz"))
+ (source (assoc-ref %build-inputs "source"))
+ (nyacc-source (assoc-ref %build-inputs "nyacc-source"))
+ (mes-seed (assoc-ref %build-inputs "mes-seed"))
+ (out (assoc-ref %outputs "out"))
+ (out/bin (string-append out "/bin"))
+ (dir (getcwd)))
+ (setenv "PATH" (string-append bash "/bin:"
+ mescc-tools "/bin:"
+ tar "/bin:"
+ xz "/bin"))
+ (format (current-error-port) "PATH=~s\n" (getenv "PATH"))
+ (mkdir-p "source")
+ (system* "tar" "--strip=1" "-C" "source" "-xvf" source)
+ (mkdir-p "nyacc-source")
+ (system* "tar" "--strip=1" "-C" "nyacc-source" "-xvf" nyacc-source)
+ (mkdir-p "mes-seed")
+ (system* "tar" "--strip=1" "-C" "mes-seed" "-xvf" mes-seed)
+ (chdir "source")
+ (zero? (system (string-append
+"set -ex;"
+
+"export PREFIX=" out ";"
+
+;; build
+"sh build.sh;"
+
+;; check
+"export GUILE=true;"
+"export GUILE_LOAD_PATH=" dir
+ ":" dir "/nyacc-source/module"
+ ":" dir "/guile;"
+"sh check.sh;"
+
+;; install
+"unset GUILE;"
+"sh install.sh;"))))))) ; []
+ (description
+ "Mes [Maxwell Equations of Software] aims to create full source
+bootstrapping for GuixSD. It consists of a mutual self-hosting [close to
+Guile-] Scheme interpreter prototype in C and a Nyacc-based C compiler in
+[Guile] Scheme.") ; []
+ (home-page "https://gitlab.com/janneke/mes")
+ (license gpl3+))))
+
+;;;
(define-public nyacc
(package
- branch wip-bootstrap created (now 9350f74), Jan Nieuwenhuizen, 2018/08/31
- 04/176: gnu: Add nyacc-boot., Jan Nieuwenhuizen, 2018/08/31
- 08/176: gnu: Add gcc-boot. WIP, Jan Nieuwenhuizen, 2018/08/31
- 11/176: tcc-boot: bump tinycc-seed: GNU Gcc support: Add ferror., Jan Nieuwenhuizen, 2018/08/31
- 01/176: gnu: Add stage0-boot., Jan Nieuwenhuizen, 2018/08/31
- 03/176: gnu: Add mes-boot.,
Jan Nieuwenhuizen <=
- 10/176: bump: mes-tools: add ferror for [m4] configure, Jan Nieuwenhuizen, 2018/08/31
- 09/176: bump tcc-boot: add sysinclude path for [m4] configure., Jan Nieuwenhuizen, 2018/08/31
- 02/176: gnu: Add mescc-tools-boot., Jan Nieuwenhuizen, 2018/08/31
- 05/176: gnu: Add tcc-boot., Jan Nieuwenhuizen, 2018/08/31
- 07/176: Revert "use %bootstrap-guile -- still guile-2.2 in bag-with-origins :-(", Jan Nieuwenhuizen, 2018/08/31
- 06/176: use %bootstrap-guile -- still guile-2.2 in bag-with-origins :-(, Jan Nieuwenhuizen, 2018/08/31
- 22/176: gnu: Update mescc-tools-boot: bootstrap from .M1 sources: remove MORTAL SIN., Jan Nieuwenhuizen, 2018/08/31
- 15/176: gnu: tcc-boot: Use bootstrap Guile and simplify., Jan Nieuwenhuizen, 2018/08/31
- 19/176: gnu: mes-boot: Use bootstrap Guile and simplify., Jan Nieuwenhuizen, 2018/08/31
- 21/176: gnu: Update mes-boot: Mescc-tools support: char foo[BAR] = {'a', 'b', 'c'}., Jan Nieuwenhuizen, 2018/08/31