diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-03-20 10:49:33 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-03-30 22:26:14 +0200 |
| commit | 51a5bbb2ef07d9b84645bd2d69e32cce5aba3eb2 (patch) | |
| tree | 502974f4a9880db203cc8cdcd792ed84a9c7df52 | |
| parent | 7321e7a8e2a2699b2196cb08168d62b762c1e396 (diff) | |
gnu: make-gcc-toolchain: Improve style.
* gnu/packages/commencement.scm (make-gcc-toolchain)[arguments]:
Improve style, use G-expressions.
Change-Id: Ib030b50f4c184d4762ced12e450d643cb016690f
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #7406
| -rw-r--r-- | gnu/packages/commencement.scm | 40 |
1 files changed, 19 insertions, 21 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm index 8e80c1f3d24..087d26670a0 100644 --- a/gnu/packages/commencement.scm +++ b/gnu/packages/commencement.scm | |||
| @@ -3660,27 +3660,25 @@ COREUTILS-FINAL vs. COREUTILS, etc." | |||
| 3660 | (source #f) | 3660 | (source #f) |
| 3661 | (build-system trivial-build-system) | 3661 | (build-system trivial-build-system) |
| 3662 | (arguments | 3662 | (arguments |
| 3663 | '(#:modules ((guix build union)) | 3663 | (list |
| 3664 | #:builder (begin | 3664 | #:modules '((guix build union)) |
| 3665 | (use-modules (ice-9 match) | 3665 | #:builder |
| 3666 | (srfi srfi-1) | 3666 | #~(begin |
| 3667 | (srfi srfi-26) | 3667 | (use-modules (ice-9 match) |
| 3668 | (guix build union)) | 3668 | (srfi srfi-1) |
| 3669 | 3669 | (srfi srfi-26) | |
| 3670 | (let ((out (assoc-ref %outputs "out"))) | 3670 | (guix build union)) |
| 3671 | (union-build out | 3671 | |
| 3672 | (filter-map (match-lambda | 3672 | (union-build #$output |
| 3673 | (("libc-debug" . _) #f) | 3673 | (filter-map (match-lambda |
| 3674 | (("libc-static" . _) #f) | 3674 | (("libc-debug" . _) #f) |
| 3675 | ((_ . directory) directory)) | 3675 | (("libc-static" . _) #f) |
| 3676 | %build-inputs)) | 3676 | ((_ . directory) directory)) |
| 3677 | 3677 | %build-inputs)) | |
| 3678 | (union-build (assoc-ref %outputs "debug") | 3678 | (union-build #$output:debug |
| 3679 | (list (assoc-ref %build-inputs | 3679 | (list (assoc-ref %build-inputs "libc-debug"))) |
| 3680 | "libc-debug"))) | 3680 | (union-build #$output:static |
| 3681 | (union-build (assoc-ref %outputs "static") | 3681 | (list (assoc-ref %build-inputs "libc-static")))))) |
| 3682 | (list (assoc-ref %build-inputs | ||
| 3683 | "libc-static"))))))) | ||
| 3684 | 3682 | ||
| 3685 | (native-search-paths | 3683 | (native-search-paths |
| 3686 | (append (package-native-search-paths gcc) | 3684 | (append (package-native-search-paths gcc) |
