about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/blockchains/quorum/default.nix
blob: b50d91a07e89518b25fa2c6149167da1cbe9f66d (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, fetchFromGitHub, buildGoModule }:

buildGoModule rec {
  pname = "quorum";
  version = "23.4.0";

  src = fetchFromGitHub {
    owner = "Consensys";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-N8MlDHo6LQ/m9xFUeOCm6bqDtjnCc86i/s4ebFLjUT0=";
  };

  vendorHash = "sha256-dTYKGFqVaAnspvKhfBU10bpSzhtQHGTm6KxnNKUVAIg=";

  patches = [
    # Add missing requirements
    ./go.mod.patch
  ];

  subPackages = [
    "cmd/geth"
    "cmd/bootnode"
  ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "A permissioned implementation of Ethereum supporting data privacy";
    homepage = "https://consensys.net/quorum/";
    license = licenses.lgpl3;
    maintainers = with maintainers; [ mmahut ];
    platforms = [ "x86_64-linux" "x86_64-darwin" ];
  };
}