@@ 43,62 43,3 @@
#:use-module (gnu packages version-control)
#:use-module (gnu packages web))
-(define-public hyperledger-fabric
- (package
- (name "hyperledger-fabric")
- (version "1.4.0")
- ;; While the GitHub repository is supposed to be "just a mirror," the Go
- ;; imports refer to it explicitly.
- (home-page "https://github.com/hyperledger/fabric")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url home-page)
- ;; ‘release-…’ are branches, and move. ‘v…’ are the tags.
- (commit (string-append "v" version))))
- (sha256
- (base32
- "0nmg24ishwddxm1i2vh5ah5ylmmcg0apnjbgv1hljvhl48k4pzxq"))
- (file-name (git-file-name name version))))
- (build-system go-build-system)
- (native-inputs
- (list which docker-cli git curl))
- (arguments
- `(#:import-path "github.com/hyperledger/fabric"
- #:unpack-path "github.com/hyperledger/fabric"
- ;; We don't need to install the source code for end-user applications.
- #:install-source? #f
- ;; TODO: Tests require a running Docker daemon.
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (replace 'build
- (lambda _
- ;; 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"
- "release/linux-amd64")))
- (add-after 'install 'install-commands
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out"))
- (src "src/github.com/hyperledger/fabric/"))
- (with-directory-excursion src
- (copy-recursively
- "release/linux-amd64/bin"
- (string-append out "/bin"))
- (install-file "LICENSE"
- (string-append out "/share/licenses"))
- (install-file "README.md"
- (string-append out "/share/doc"))
- (copy-recursively "sampleconfig"
- (string-append out "/etc/hyperledger/fabric"))))
- #t)))))
- (supported-systems '("x86_64-linux"))
- (synopsis "Platform for distributed ledger solutions")
- (description "Hyperledger Fabric is a platform for distributed ledger
-solutions, underpinned by a modular architecture focusing on confidentiality
-and resiliency. It is designed to support pluggable implementations of
-different components.")
- (license asl2.0)))
-