2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
2018-12-19 23:36:06 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "hyperledger-fabric";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/hyperledger/fabric";
|
|
|
|
|
|
|
|
# taken from https://github.com/hyperledger/fabric/blob/v1.3.0/Makefile#L108
|
|
|
|
subPackages = [
|
|
|
|
"common/tools/configtxgen"
|
|
|
|
"common/tools/configtxlator"
|
|
|
|
"common/tools/cryptogen"
|
|
|
|
"common/tools/idemixgen"
|
|
|
|
"cmd/discover"
|
|
|
|
"peer"
|
|
|
|
"orderer"
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyperledger";
|
|
|
|
repo = "fabric";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "08qrrxzgkqg9v7n3y8f2vggyqx9j65wisxi17hrabz5mzaq299xs";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-19 23:36:06 +00:00
|
|
|
description = "An implementation of blockchain technology, leveraging familiar and proven technologies";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.hyperledger.org/projects/Fabric";
|
2018-12-19 23:36:06 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|