@@ -77,11 +77,15 @@
#:phases
(modify-phases %standard-phases
(replace 'build
- (lambda _
+ (lambda* (#:key outputs #:allow-other-keys)
;; Only linux-amd64 and linux-ppc64le seem to be supported at the moment.
(invoke "make"
"-j" (number->string (parallel-job-count))
"-C" "src/github.com/hyperledger/fabric"
+ ;; The build system expects GOPATH to contain a single entry
+ ;; and uses it to determine the installation directory.
+ ;; Work around that.
+ (string-append "GOTOOLS_BINDIR=" (assoc-ref outputs "out") "/bin")
"release/linux-amd64")))
(add-after 'install 'install-commands
(lambda* (#:key outputs #:allow-other-keys)