Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / blockchains / quorum / default.nix
blobb50d91a07e89518b25fa2c6149167da1cbe9f66d
1 { lib, fetchFromGitHub, buildGoModule }:
3 buildGoModule rec {
4   pname = "quorum";
5   version = "23.4.0";
7   src = fetchFromGitHub {
8     owner = "Consensys";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-N8MlDHo6LQ/m9xFUeOCm6bqDtjnCc86i/s4ebFLjUT0=";
12   };
14   vendorHash = "sha256-dTYKGFqVaAnspvKhfBU10bpSzhtQHGTm6KxnNKUVAIg=";
16   patches = [
17     # Add missing requirements
18     ./go.mod.patch
19   ];
21   subPackages = [
22     "cmd/geth"
23     "cmd/bootnode"
24   ];
26   ldflags = [ "-s" "-w" ];
28   meta = with lib; {
29     description = "A permissioned implementation of Ethereum supporting data privacy";
30     homepage = "https://consensys.net/quorum/";
31     license = licenses.lgpl3;
32     maintainers = with maintainers; [ mmahut ];
33     platforms = [ "x86_64-linux" "x86_64-darwin" ];
34   };