summaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorSarah Morgensen <iskarian@mgsn.dev>2021-12-13 20:11:47 -0500
committerLeo Famulari <leo@famulari.name>2021-12-24 16:32:21 -0500
commitd0050ea8ad1c32d94cf5ba6725a0fc961bb23f38 (patch)
treeaa03a2a0e12a265c89a0045579ec3add35651ddd /guix/build-system
parentef4c9abeba4e043e6eaea4048f40f99831cb2e28 (diff)
build-system/go: Add #:substitutable? argument.
* guix/build-system/go.scm (go-build): Add 'substitutable?' argument. (go-cross-build): Likewise. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/go.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index 18824c79d9..0b2bf1c11b 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -172,7 +172,8 @@ commit hash and its date rather than a proper release tag."
(imported-modules %go-build-system-modules)
(modules '((guix build go-build-system)
(guix build union)
- (guix build utils))))
+ (guix build utils)))
+ (substitutable? #t))
(define builder
(with-imported-modules imported-modules
#~(begin
@@ -182,6 +183,7 @@ commit hash and its date rather than a proper release tag."
#:system #$system
#:phases #$phases
#:outputs #$(outputs->gexp outputs)
+ #:substitutable? #$substitutable?
#:goarch #$goarch
#:goos #$goos
#:search-paths '#$(sexp->gexp
@@ -222,7 +224,8 @@ commit hash and its date rather than a proper release tag."
(imported-modules %go-build-system-modules)
(modules '((guix build go-build-system)
(guix build union)
- (guix build utils))))
+ (guix build utils)))
+ (substitutable? #t))
"Cross-build NAME using GO, where TARGET is a GNU triplet and with INPUTS."
(define builder
#~(begin