aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-28 08:43:20 +0100
committerChristopher Baines <christopher.baines@digital.cabinet-office.gov.uk>2019-05-30 18:18:19 +0100
commit819e025f97d665b29862507241d19b1af2fab996 (patch)
tree58f240965a0a53dbe4d54fa10fe95df59204cc31
parent079b6abc8af44985239e30875dfe3d5c01ccd49f (diff)
downloadgnu-guix-819e025f97d665b29862507241d19b1af2fab996.tar
gnu-guix-819e025f97d665b29862507241d19b1af2fab996.tar.gz
Support placing the pkg and src directories in a lib output
-rw-r--r--guix/build/go-build-system.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/go-build-system.scm b/guix/build/go-build-system.scm
index 858068ba98..d292ed1c9d 100644
--- a/guix/build/go-build-system.scm
+++ b/guix/build/go-build-system.scm
@@ -238,7 +238,8 @@ XXX We can't make us of compiled libraries (Go \"packages\")."
(when install-source?
(if (string-null? import-path)
((display "WARNING: The Go import path is unset.\n")))
- (let* ((out (assoc-ref outputs "out"))
+ (let* ((out (or (assoc-ref outputs "lib")
+ (assoc-ref outputs "out")))
(source (string-append (getenv "GOPATH") "/src/" import-path))
(dest (string-append out "/src/" import-path)))
(mkdir-p dest)