summary refs log tree commit diff
path: root/pkgs/tools/misc/hyperledger-fabric/default.nix
blob: 13a88dcba30381062137071a10606dc9a88eccbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, 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 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 ];
  };
}