gcc transformation moved to utils

This commit is contained in:
Yann Dupont 2021-11-22 23:00:51 +01:00
parent 4c33f3fbdc
commit b38a292b8f
4 changed files with 50 additions and 77 deletions

View file

@ -93,9 +93,7 @@
#:use-module (glicid packages gcc)
#:use-module (glicid packages linux)
#:use-module (glicid packages fabric-management)
#:use-module (glicid utils)
)
@ -112,26 +110,6 @@
)
)
(use-modules (guix transformations))
(define gcc11-instead-of-gcc
;; This is a procedure to replace GCC by GCC11,
;; recursively.
; (package-input-rewriting/spec `((,gcc-toolchain . ,(const gcc-toolchain-11)))))
(package-input-rewriting `(
(,gcc-toolchain . ,gcc-toolchain-11)
(,gfortran-toolchain . ,gfortran-toolchain-11)
)
)
)
(define gcc10-instead-of-gcc
;; This is a procedure to replace GCC by GCC10,
;; recursively.
; (package-input-rewriting/spec `((,gcc-toolchain . ,(const gcc-toolchain-10)))))
(package-input-rewriting `((,gcc-toolchain . ,gcc-toolchain-10))))
(define openmpi-glicid-transform-gcc-10
(gcc10-instead-of-gcc openmpi-glicid))