|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(use-modules (guix) |
|
(guix profiles) |
|
(guile-package)) |
|
|
|
(define* (package->manifest-entry* package system |
|
#:key target) |
|
"Return a manifest entry for PACKAGE on SYSTEM, optionally cross-compiled to |
|
TARGET." |
|
(manifest-entry |
|
(inherit (package->manifest-entry package)) |
|
(name (string-append (package-name package) "." system |
|
(if target |
|
(string-append "." target) |
|
""))) |
|
(item (with-parameters ((%current-system system) |
|
(%current-target-system target)) |
|
package)))) |
|
|
|
(define native-builds |
|
(manifest |
|
(append (map (lambda (system) |
|
(package->manifest-entry* guile system)) |
|
|
|
'("x86_64-linux" "i686-linux" |
|
"aarch64-linux" "armhf-linux" |
|
"powerpc64le-linux")) |
|
(map (lambda (guile) |
|
(package->manifest-entry* guile "x86_64-linux")) |
|
(cons (package |
|
(inherit (package-with-c-toolchain |
|
guile |
|
`(("clang-toolchain" |
|
,(specification->package |
|
"clang-toolchain"))))) |
|
(name "guile-clang")) |
|
(list guile-without-threads |
|
guile-without-networking |
|
guile-debug |
|
guile-strict-typing)))))) |
|
|
|
(define cross-builds |
|
(manifest |
|
(map (lambda (target) |
|
(package->manifest-entry* guile "x86_64-linux" |
|
#:target target)) |
|
'("i586-pc-gnu" |
|
;; "arm-linux-gnueabihf" |
|
"aarch64-linux-gnu" |
|
"riscv64-linux-gnu" |
|
"i686-w64-mingw32" |
|
"x86_64-linux-gnu")))) |
|
|
|
(concatenate-manifests (list native-builds cross-builds)) |
|
|