guix-commits
[Top][All Lists]
Advanced

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

24/63: bootstrap: Add sed-mesboot0.


From: guix-commits
Subject: 24/63: bootstrap: Add sed-mesboot0.
Date: Sun, 24 Nov 2019 05:56:22 -0500 (EST)

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

commit 700659304cdf2477f22c262f9dfcbcbf18e74b87
Author: Jan Nieuwenhuizen <address@hidden>
Date:   Sun Oct 6 17:47:24 2019 +0200

    bootstrap: Add sed-mesboot0.
    
    * gnu/packages/commencement.scm (sed-mesboot0): New variable.
---
 gnu/packages/commencement.scm | 50 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 38c1e94..a7ad836 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -849,6 +849,56 @@
          ;; FIXME: no compressing gzip yet
          (delete 'compress-documentation))))))
 
+(define sed-mesboot0
+  (package
+    (inherit sed)
+    (name "sed-mesboot0")
+    (version "1.18")
+    (source (bootstrap-origin
+             (origin
+               (method url-fetch)
+               (uri (string-append "mirror://gnu/sed/sed-"
+                                   version ".tar.gz"))
+               (sha256
+                (base32
+                 "1hyv7i82jd0q18xcql51ylc8jwadp3gb3irgcqlis3v61p35jsv2")))))
+    (supported-systems '("i686-linux" "x86_64-linux"))
+    (inputs '())
+    (propagated-inputs '())
+    (native-inputs `(("bash" ,bash-mesboot0)
+                     ("gzip" ,gzip-mesboot0)
+                     ("make" ,make-mesboot0)
+                     ("tcc" ,tcc-boot)
+
+                     ("gash" ,%bootstrap-gash)
+                     ("guile" ,%bootstrap-guile)))
+    (arguments
+     `(#:implicit-inputs? #f
+       #:guile ,%bootstrap-guile
+       #:parallel-build? #f
+       #:configure-flags '("CC=tcc")
+       #:make-flags '("CC=tcc" "extra_objs=" "DEFS=-D HAVE_BCOPY")
+       #:strip-binaries? #f             ; no strip yet
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'scripted-patch
+           (lambda _
+             (let* ((out (assoc-ref %outputs "out"))
+                    (bash (assoc-ref %build-inputs "bash"))
+                    (shell (string-append bash "/bin/bash")))
+               (substitute* "configure"
+                 (("/bin/sh") shell))
+               #t)))
+         (replace 'check
+           (lambda _
+             (invoke "./sed" "--version")))
+         (replace 'install
+           (lambda _
+             (let* ((out (assoc-ref %outputs "out"))
+                    (bin (string-append out "/bin")))
+               (install-file "sed" bin)
+               #t))))))))
+
 (define binutils-mesboot0
   (package
     (inherit binutils)



reply via email to

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