summary refs log tree commit diff
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2019-11-22 21:00:15 +0100
committerJan Nieuwenhuizen <janneke@gnu.org>2020-02-17 23:16:43 +0100
commitaad146a0bb8269b9c40da419da6afa76cd2a6187 (patch)
treebc3e7273bf8a818c8a033391a3bdf4ed78e889aa
parent53d5cb253b9c220a5798053fd78812b715853620 (diff)
downloadguix-aad146a0bb8269b9c40da419da6afa76cd2a6187.tar.gz
gnu: commencement: Add sed-mesboot.
* gnu/packages/commencement.scm (sed-mesboot): New variable.
-rw-r--r--gnu/packages/commencement.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index e03ec2df2a..52562f1e7a 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -1857,6 +1857,38 @@ ac_cv_c_float_format='IEEE (little-endian)'
                (symlink "gawk" (string-append bin "/awk"))
                #t))))))))
 
+(define sed-mesboot
+  (package
+    (inherit sed)
+    (name "sed-mesboot")
+    (version "4.0.6")                   ; 2003-04
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnu/sed/sed-"
+                                  version ".tar.gz"))
+              (sha256
+               (base32
+                "0861ij94cqc4vaaki6r2wlapwcmhpx4ggp4r70f46mb21a8fkvf1"))))
+    (native-inputs (%boot-mesboot0-inputs))
+    (supported-systems '("i686-linux" "x86_64-linux"))
+    (inputs '())
+    (propagated-inputs '())
+    (arguments
+     `(#:implicit-inputs? #f
+       #:parallel-build? #f
+       #:guile ,%bootstrap-guile
+       #:tests? #f                      ; 8to7 fails
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack '/bin/sh
+           (lambda _
+             (let* ((bash (assoc-ref %build-inputs "bash"))
+                    (shell (string-append bash "/bin/bash")))
+               (substitute* "testsuite/Makefile.tests"
+                 (("^SHELL = /bin/sh")
+                  (string-append "SHELL = " shell)))
+               #t))))))))
+
 (define binutils-mesboot
   (package
     (inherit binutils-mesboot0)