Skip to content

Commit

Permalink
hyperledger-fabric: init at 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam authored and worldofpeace committed Dec 20, 2018
1 parent db996dd commit 0410537
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/tools/misc/hyperledger-fabric/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:

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;

meta = with stdenv.lib; {
description = "An implementation of blockchain technology, leveraging familiar and proven technologies";
homepage = https://wiki.hyperledger.org/projects/Fabric;
license = licenses.asl20;
maintainers = [ maintainers.marsam ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17525,6 +17525,8 @@ in
extra-packages = [ csound ];
};

hyperledger-fabric = callPackage ../tools/misc/hyperledger-fabric { };

jackline = callPackage ../applications/networking/instant-messengers/jackline { };

slack = callPackage ../applications/networking/instant-messengers/slack { };
Expand Down

0 comments on commit 0410537

Please sign in to comment.