summaryrefslogtreecommitdiff
path: root/guix/build-system
diff options
context:
space:
mode:
authorJakub Kądziołka <kuba@kadziolka.net>2020-01-05 17:13:20 +0100
committerJakub Kądziołka <kuba@kadziolka.net>2020-04-08 12:24:42 +0200
commit3f3c9fdcd8cff2e761a2768b175b63b3c09ef4e3 (patch)
treea8b6c72160a21e61f9b4b1b6877e3fa856236852 /guix/build-system
parent18705a507da60ad9f9d03d2dbbaa127cedca3716 (diff)
build-system/go: Allow providing additional build flags
* guix/build-system/go.scm (build-flags): New argument. * guix/build/go-build-system.scm (build): Use apply to pass the additional arguments to invoke.
Diffstat (limited to 'guix/build-system')
-rw-r--r--guix/build-system/go.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm
index 1b916af8f9..f8ebaefb27 100644
--- a/guix/build-system/go.scm
+++ b/guix/build-system/go.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Petter <petter@mykolab.ch>
;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -82,6 +83,7 @@
(install-source? #t)
(import-path "")
(unpack-path "")
+ (build-flags ''())
(tests? #t)
(allow-go-reference? #f)
(system (%current-system))
@@ -109,6 +111,7 @@
#:install-source? ,install-source?
#:import-path ,import-path
#:unpack-path ,unpack-path
+ #:build-flags ,build-flags
#:tests? ,tests?
#:allow-go-reference? ,allow-go-reference?
#:inputs %build-inputs)))