diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2024-10-21 14:53:03 +0300 |
|---|---|---|
| committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2026-01-28 21:47:39 +0100 |
| commit | 09eca14ae75cb440e83a5893d6841cdfc6415035 (patch) | |
| tree | 459ce00997153696dc706c4939dd5849134a1e81 /gnu | |
| parent | 2f58bea592987f5d5b1da9ee47146896dd487d14 (diff) | |
gnu: Add mawk-mesboot.
* gnu/packages/commencement.scm (mawk-mesboot): New variable.
Change-Id: Ia04d70557682aef705eebe8caccb59ce68406ffc
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/commencement.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 639eb9c2c13..8d0933d5519 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -2181,6 +2181,40 @@ ac_cv_c_float_format='IEEE (little-endian)' | |||
| 2181 | (install-file "gawk" bin) | 2181 | (install-file "gawk" bin) |
| 2182 | (symlink "gawk" (string-append bin "/awk")))))))))) | 2182 | (symlink "gawk" (string-append bin "/awk")))))))))) |
| 2183 | 2183 | ||
| 2184 | (define mawk-mesboot | ||
| 2185 | (package | ||
| 2186 | (inherit mawk) | ||
| 2187 | (name "mawk-mesboot") | ||
| 2188 | (version "1.3.4-20240905") | ||
| 2189 | (source (bootstrap-origin | ||
| 2190 | (origin | ||
| 2191 | (method url-fetch) | ||
| 2192 | (uri (string-append "https://invisible-mirror.net/archives/mawk" | ||
| 2193 | "/mawk-" version ".tgz")) | ||
| 2194 | ;; Our gzip and tar don't know how to unpack a '.tgz' file. | ||
| 2195 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 2196 | (sha256 | ||
| 2197 | (base32 | ||
| 2198 | "1q4rfcv7ppfw4fra8hp8z0s4qnsv1x598ny4xwb026zsgn96g6d3")) | ||
| 2199 | (snippet | ||
| 2200 | #~(begin (delete-file "parse.c")))))) | ||
| 2201 | (native-inputs | ||
| 2202 | (modify-inputs (if (target-x86?) | ||
| 2203 | (%boot-mesboot2-inputs) | ||
| 2204 | (%boot-muslboot2-inputs)) | ||
| 2205 | (append byacc-mesboot))) | ||
| 2206 | (inputs '()) | ||
| 2207 | (propagated-inputs '()) | ||
| 2208 | (arguments | ||
| 2209 | `(#:implicit-inputs? #f | ||
| 2210 | #:parallel-build? #f ; Prevent race condition | ||
| 2211 | #:guile ,%bootstrap-guile | ||
| 2212 | #:phases | ||
| 2213 | (modify-phases %standard-phases | ||
| 2214 | (replace 'check | ||
| 2215 | (lambda _ | ||
| 2216 | (invoke "./mawk" "--version")))))))) | ||
| 2217 | |||
| 2184 | (define (%boot-mesboot3-inputs) | 2218 | (define (%boot-mesboot3-inputs) |
| 2185 | `(("binutils" ,binutils-mesboot) | 2219 | `(("binutils" ,binutils-mesboot) |
| 2186 | ("gawk" ,gawk-mesboot) | 2220 | ("gawk" ,gawk-mesboot) |
