guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

12/63: bootstrap: Add %bootstrap-gash. WIP


From: guix-commits
Subject: 12/63: bootstrap: Add %bootstrap-gash. WIP
Date: Sun, 24 Nov 2019 05:52:43 -0500 (EST)

janneke pushed a commit to branch wip-bootstrap
in repository guix.

commit 3b098948086384677566b321d23c957c7e83ea6a
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Sun Oct 28 01:24:28 2018 +0200

    bootstrap: Add %bootstrap-gash.  WIP
    
    Built with
    
        XXX5d2729d5be414669b11ab7242a4618059fe71b9e
        XXXbootstrap: Add %guile-gash-stripped, %guile-gash-bootstrap-tarball.
    
    * gnu/packages/bootstrap.scm (%bootstrap-gash): New variable.
---
 gnu/packages/bootstrap.scm | 62 +++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 61 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/bootstrap.scm b/gnu/packages/bootstrap.scm
index 74dcbf9..c026db2 100644
--- a/gnu/packages/bootstrap.scm
+++ b/gnu/packages/bootstrap.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès 
<address@hidden>
 ;;; Copyright © 2014, 2015, 2018, 2019 Mark H Weaver <address@hidden>
 ;;; Copyright © 2017 Efraim Flashner <address@hidden>
-;;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <address@hidden>
+;;; Copyright © 2018, 2019 Jan (janneke) Nieuwenhuizen <address@hidden>
 ;;; Copyright © 2019 Carl Dong <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -49,6 +49,7 @@
             bootstrap-guile-origin
 
             %bootstrap-guile
+            %bootstrap-gash
             %bootstrap-coreutils&co
             %bootstrap-linux-libre-headers
             %bootstrap-binutils
@@ -805,6 +806,65 @@ exec ~a/bin/.gcc-wrapped -B~a/lib \
     (home-page #f)
     (license gpl3+)))
 
+(define %bootstrap-gash
+  ;; The initial Gash.  Uses .go files from a tarball typically built by
+  ;; %GASH-BOOTSTRAP-GUILE-TARBALL.
+  (package
+    (name "bootstrap-gash")
+    (version "36")
+    (source #f)
+    (build-system trivial-build-system)
+    (arguments
+     `(#:guile ,%bootstrap-guile
+       #:modules ((guix build utils))
+       #:builder
+       (begin
+         (use-modules (guix build utils)
+                      (ice-9 match)
+                      (ice-9 popen))
+         (let ((out     (assoc-ref %outputs "out"))
+               (guile   (assoc-ref %build-inputs "guile"))
+               (tar     (assoc-ref %build-inputs "tar"))
+               (xz      (assoc-ref %build-inputs "xz"))
+               (tarball (assoc-ref %build-inputs "tarball")))
+
+           (mkdir out)
+           (copy-file tarball "binaries.tar.xz")
+           (invoke xz "-d" "binaries.tar.xz")
+           (let ((build   (getcwd))
+                 (bin     (string-append out "/bin")))
+
+             (with-directory-excursion out
+               (invoke tar "xvf"
+                       (string-append build "/binaries.tar")))
+             (chmod bin #o755))))))
+    (inputs
+     `(("guile" ,%bootstrap-guile)
+       ("tar" ,(bootstrap-executable "tar" (%current-system)))
+       ("xz"  ,(bootstrap-executable "xz" (%current-system)))
+       ("tarball" ,(bootstrap-origin
+                    (origin
+                      (method url-fetch)
+                      (uri (string-append
+                            "http://lilypond.org/janneke/mes/";
+                            (match (%current-system)
+                              ("x86_64-linux"
+                               
"gash-bootstrap-guile-0.1-9.32188ac-x86_64-linux.tar.xz")
+                              ("i686-linux"
+                               
"gash-bootstrap-guile-0.1-9.32188ac-i686-linux.tar.xz"))))
+                      (sha256
+                       (base32
+                        (match (%current-system)
+                          ("x86_64-linux"
+                           
"1gz63b1xcgjsbsx3nbdvaxblc034lhcfbjd8mjv8y26595rh413w")
+                          ("i686-linux"
+                           
"12lszx0ghd4srvka11vdwc3756f66w9ci05jld17qgk6bjxraz33")))))))))
+    (supported-systems '("i686-linux" "x86_64-linux"))
+    (synopsis "Bootstrap binaries of Gash")
+    (description synopsis)
+    (home-page #f)
+    (license gpl3+)))
+
 (define (%bootstrap-inputs)
   ;; The initial, pre-built inputs.  From now on, we can start building our
   ;; own packages.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]