From 0410537561decd5fc2751bb675a2e10bb931bd6c Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 19 Dec 2018 18:36:06 -0500 Subject: [PATCH] hyperledger-fabric: init at 1.3.0 --- .../tools/misc/hyperledger-fabric/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/misc/hyperledger-fabric/default.nix diff --git a/pkgs/tools/misc/hyperledger-fabric/default.nix b/pkgs/tools/misc/hyperledger-fabric/default.nix new file mode 100644 index 000000000000..a66923b03f49 --- /dev/null +++ b/pkgs/tools/misc/hyperledger-fabric/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index afbaaa9a3eb8..7082c1ff536a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };