gnu: gdc: Fix build.

* gnu/packages/gcc.scm (gdc): Add gdc-11 (and gcc) to native inputs.

Fixes: #1460
Co-authored-by: Dariqq <dariqq@posteo.net>
Change-Id: I1d25704829d48a9819cc493e227b050083b18ea4
This commit is contained in:
Maxim Cournoyer 2025-08-26 10:27:15 +09:00
parent 0dbe72111f
commit 2c922f9371
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1285,7 +1285,7 @@ as the 'native-search-paths' field."
"gfortran" '("fortran")
%generic-search-paths)))
(define-public gdc-11
(define-public gdc-11 ;kept for bootstrapping
(hidden-package
(custom-gcc gcc-11 "gdc" '("d")
%generic-search-paths)))
@ -1293,8 +1293,18 @@ as the 'native-search-paths' field."
;;; Alias tracking the latest GDC version.
(define-public gdc
(hidden-package
(custom-gcc gcc "gdc" '("d")
(let ((base (custom-gcc gcc
"gdc" '("d")
%generic-search-paths)))
(package
(inherit base)
(native-inputs
(modify-inputs (package-native-inputs base)
;; Since GCC 12, GDC is self-hosted, requiring a version of itself
;; to build.
;; XXX: GCC must be prepended as well to avoid an issue with the C++
;; headers ordering.
(prepend gcc gdc-11)))))))
(define-public gm2
(hidden-package