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-20 10:22:21 +0100
commitb1002c9626b58e1611502b89fc85a34a326b7500 (patch)
treecedbd6eea68a49f8407896ca3f5c94cdadce6f9f
parent598a3e8cae55abeac82b8a22398701289e281393 (diff)
downloadgnu-guix-b1002c9626b58e1611502b89fc85a34a326b7500.tar
gnu-guix-b1002c9626b58e1611502b89fc85a34a326b7500.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)