guix: mes: Add armhf-linux, aarch64-linux support.

* guix/git/mes.scm (mes): Add armhf-linux, aarch64-linux support.
This commit is contained in:
Jan Nieuwenhuizen 2020-06-04 13:22:39 +02:00 committed by Danny Milosavljevic
parent b0347bf53d
commit a44544bae9
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 43 additions and 36 deletions

View File

@ -121,46 +121,53 @@ extensive examples, including parsers for the Javascript and C99 languages.")
(license (list gpl3+ lgpl3+)))) (license (list gpl3+ lgpl3+))))
(define-public mes (define-public mes
(let ((triplet "i686-unknown-linux-gnu") (package
(version "0.22")) (name "mes")
(package (version "0.22")
(name "mes") (source (origin
(version version) (method url-fetch)
(source (origin (uri (string-append
(method url-fetch) "https://ftp.gnu.org/pub/gnu/mes/mes-" version ".tar.gz"))
(uri (string-append (sha256
"https://ftp.gnu.org/pub/gnu/mes/mes-" version ".tar.gz")) (base32 #!mes!# "04pajp8v31na34ls4730ig5f6miiplhdvkmsb9ls1b8bbmw2vb4n"))))
(sha256 (build-system gnu-build-system)
(base32 #!mes!# "04pajp8v31na34ls4730ig5f6miiplhdvkmsb9ls1b8bbmw2vb4n")))) (supported-systems '("aarch64-linux" "armhf-linux" "i686-linux" "x86_64-linux"))
(build-system gnu-build-system) (propagated-inputs
(supported-systems '("i686-linux" "x86_64-linux")) `(("mescc-tools" ,mescc-tools)
(propagated-inputs ("nyacc" ,nyacc)))
`(("mescc-tools" ,mescc-tools) (native-inputs
("nyacc" ,nyacc))) `(("guile" ,guile-2.2)
(native-inputs ,@(cond ((string-prefix? "x86_64-linux" (or (%current-target-system)
`(("guile" ,guile-2.2) (%current-system)))
,@(if (string-prefix? "x86_64-linux" (or (%current-target-system) ;; Use cross-compiler rather than #:system "i686-linux" to get
(%current-system))) ;; MesCC 64 bit .go files installed ready for use with Guile.
;; Use cross-compiler rather than #:system "i686-linux" to get (let ((triplet "i686-unknown-linux-gnu"))
;; MesCC 64 bit .go files installed ready for use with Guile. `(("i686-linux-binutils" ,(cross-binutils triplet))
`(("i686-linux-binutils" ,(cross-binutils triplet)) ("i686-linux-gcc" ,(cross-gcc triplet)))))
("i686-linux-gcc" ,(cross-gcc triplet))) ((string-prefix? "aarch64-linux" (or (%current-target-system)
'()) (%current-system)))
("graphviz" ,graphviz) ;; Use cross-compiler rather than #:system "armhf-linux" to get
("help2man" ,help2man) ;; MesCC 64 bit .go files installed ready for use with Guile.
("perl" ,perl) ; build-aux/gitlog-to-changelog (let ((triplet "arm-linux-gnueabihf"))
("texinfo" ,texinfo))) `(("arm-linux-binutils" ,(cross-binutils triplet))
(arguments ("arm-linux-gcc" ,(cross-gcc triplet)))))
`(#:strip-binaries? #f)) ; binutil's strip b0rkes MesCC/M1/hex2 binaries (else
(synopsis "Scheme interpreter and C compiler for full source bootstrapping") '()))
(description ("graphviz" ,graphviz)
"GNU Mes--Maxwell Equations of Software--brings the Reduced Binary Seed ("help2man" ,help2man)
("perl" ,perl) ; build-aux/gitlog-to-changelog
("texinfo" ,texinfo)))
(arguments
`(#:strip-binaries? #f)) ; binutil's strip b0rkes MesCC/M1/hex2 binaries
(synopsis "Scheme interpreter and C compiler for full source bootstrapping")
(description
"GNU Mes--Maxwell Equations of Software--brings the Reduced Binary Seed
bootstrap to Guix and aims to help create full source bootstrapping for bootstrap to Guix and aims to help create full source bootstrapping for
GNU/Linux distributions. It consists of a mutual self-hosting Scheme GNU/Linux distributions. It consists of a mutual self-hosting Scheme
interpreter in C and a Nyacc-based C compiler in Scheme and is compatible with interpreter in C and a Nyacc-based C compiler in Scheme and is compatible with
Guile.") Guile.")
(home-page "https://www.gnu.org/software/mes") (home-page "https://www.gnu.org/software/mes")
(license gpl3+)))) (license gpl3+)))
(define-public mes.git (define-public mes.git
(let ((version "0.22") (let ((version "0.22")