aboutsummaryrefslogtreecommitdiff
path: root/guix/build-system/go.scm
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2017-10-24 12:17:32 -0400
committerLeo Famulari <leo@famulari.name>2017-10-24 13:10:34 -0400
commitc10851cf912d60d18d79badbbefe85c2d21081f9 (patch)
tree032e5419695e03a5df096122245fd567e7d15e0d /guix/build-system/go.scm
parent1c37f839fb58283c99bf46be860d66e579d6f555 (diff)
downloadgnu-guix-c10851cf912d60d18d79badbbefe85c2d21081f9.tar
gnu-guix-c10851cf912d60d18d79badbbefe85c2d21081f9.tar.gz
build-system/go: Parameterize installing the source code.
* guix/build-system/go.scm (go-build): Add install-source? key. * guix/build/go-build-system.scm (install-source): Check if install-source? is true.
Diffstat (limited to 'guix/build-system/go.scm')
-rw-r--r--guix/build-system/go.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index 43599df6f4..ec447d2a28 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -78,6 +78,7 @@
%standard-phases))
(outputs '("out"))
(search-paths '())
+ (install-source? #t)
(import-path "")
(unpack-path "")
(tests? #t)
@@ -102,6 +103,7 @@
#:outputs %outputs
#:search-paths ',(map search-path-specification->sexp
search-paths)
+ #:install-source? ,install-source?
#:import-path ,import-path
#:unpack-path ,unpack-path
#:tests? ,tests?