python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / hyperledger-fabric / default.nix
blob15bb67d62842c4fe425425fd49110b8b96474c3f
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "hyperledger-fabric";
8   version = "2.4.6";
10   src = fetchFromGitHub {
11     owner = "hyperledger";
12     repo = "fabric";
13     rev = "v${version}";
14     sha256 = "sha256-Q0qrDPih3M4YCzjhLFBy51qVvoICwwn1LJf63rYiUUg=";
15   };
17   vendorSha256 = null;
19   postPatch = ''
20     # Broken
21     rm cmd/peer/main_test.go
22   '';
24   subPackages = [
25     "cmd/configtxgen"
26     "cmd/configtxlator"
27     "cmd/cryptogen"
28     "cmd/discover"
29     "cmd/ledgerutil"
30     "cmd/orderer"
31     "cmd/osnadmin"
32     "cmd/peer"
33   ];
35   ldflags = [
36     "-s"
37     "-w"
38     "-X github.com/hyperledger/fabric/common/metadata.Version=${version}"
39     "-X github.com/hyperledger/fabric/common/metadata.CommitSha=${src.rev}"
40   ];
42   meta = with lib; {
43     description = "High-performance, secure, permissioned blockchain network";
44     longDescription = ''
45       Hyperledger Fabric is an enterprise-grade permissioned distributed ledger
46       framework for developing solutions and applications. Its modular and
47       versatile design satisfies a broad range of industry use cases. It offers
48       a unique approach to consensus that enables performance at scale while
49       preserving privacy.
50     '';
51     homepage = "https://wiki.hyperledger.org/display/fabric";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ marsam ];
54   };