gnu: Add gm2-toolchain.

* gnu/packages/commencement.scm (gm2-toolchain): New variable.
* gnu/packages/gcc.scm (gm2): New variable.

Change-Id: I0f416b53497daeec60dcefc3916591ea8a152dae
This commit is contained in:
Danny Milosavljevic 2025-05-17 12:29:52 +02:00
parent 24f47d5db1
commit 57ea6d3d59
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5
2 changed files with 19 additions and 0 deletions

View file

@ -3744,5 +3744,12 @@ Fortran development to be installed in user profiles. This includes
gfortran, as well as libc (headers and binaries, plus debugging symbols gfortran, as well as libc (headers and binaries, plus debugging symbols
in the @code{debug} output), and binutils."))) in the @code{debug} output), and binutils.")))
(define-public gm2-toolchain
(package (inherit (make-gcc-toolchain gm2))
(synopsis "Complete GCC tool chain for Modula-2 development")
(description "This package provides a complete GCC tool chain for
Modula-2 development to be installed in user profiles. This includes
modula2, as well as libc (headers and binaries, plus debugging symbols
in the @code{debug} output), and binutils.")))
;;; commencement.scm ends here ;;; commencement.scm ends here

View file

@ -48,6 +48,7 @@
#:use-module (gnu packages docbook) #:use-module (gnu packages docbook)
#:use-module (gnu packages graphviz) #:use-module (gnu packages graphviz)
#:use-module (gnu packages elf) #:use-module (gnu packages elf)
#:use-module (gnu packages flex)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
@ -1247,6 +1248,17 @@ as the 'native-search-paths' field."
(custom-gcc gcc "gdc" '("d") (custom-gcc gcc "gdc" '("d")
%generic-search-paths))) %generic-search-paths)))
(define-public gm2
(hidden-package
(let ((base (custom-gcc gcc-14
"gm2" '("m2")
%generic-search-paths)))
(package
(inherit base)
(native-inputs
(modify-inputs (package-native-inputs base)
(prepend flex)))))))
(define-public (make-libgccjit gcc) (define-public (make-libgccjit gcc)
(package (package
(inherit gcc) (inherit gcc)