summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2025-05-17 12:29:52 +0200
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-05-19 21:41:55 +0200
commit57ea6d3d593f483f50fd410478f9b645bbd72b45 (patch)
tree28967940e3471dab53282cb5ea065200e121fd93
parent24f47d5db144608cde2bc197cb55508e65ca4360 (diff)
gnu: Add gm2-toolchain.
* gnu/packages/commencement.scm (gm2-toolchain): New variable. * gnu/packages/gcc.scm (gm2): New variable. Change-Id: I0f416b53497daeec60dcefc3916591ea8a152dae
-rw-r--r--gnu/packages/commencement.scm7
-rw-r--r--gnu/packages/gcc.scm12
2 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 60ade637e1..24382d5437 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -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
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
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 2486448893..2c4e967945 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -48,6 +48,7 @@
#:use-module (gnu packages docbook)
#:use-module (gnu packages graphviz)
#:use-module (gnu packages elf)
+ #:use-module (gnu packages flex)
#:use-module (gnu packages perl)
#:use-module (guix packages)
#:use-module (guix download)
@@ -1247,6 +1248,17 @@ as the 'native-search-paths' field."
(custom-gcc gcc "gdc" '("d")
%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)
(package
(inherit gcc)