2021-08-24 10:22:39 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 11:00:31 +02:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-06-08 15:41:43 +02:00
|
|
|
pname = "erigon";
|
2021-08-26 12:49:48 +02:00
|
|
|
version = "2021.08.05";
|
2020-09-25 11:00:31 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ledgerwatch";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-26 12:49:48 +02:00
|
|
|
sha256 = "sha256-bCREY3UbMgSTu1nVytrYFsGgdMEaMLy5ZGrLqDNu9YM=";
|
2020-09-25 11:00:31 +02:00
|
|
|
};
|
|
|
|
|
2021-08-26 12:49:48 +02:00
|
|
|
vendorSha256 = "0a0d6n2c0anp36z7kvkadd6zvxzvsywfpk5qv6aq4ji4qd0hlq8q";
|
2020-09-25 11:00:31 +02:00
|
|
|
runVend = true;
|
|
|
|
|
2021-06-08 15:41:43 +02:00
|
|
|
# Build errors in mdbx when format hardening is enabled:
|
|
|
|
# cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2020-09-25 11:00:31 +02:00
|
|
|
subPackages = [
|
2021-06-08 15:41:43 +02:00
|
|
|
"cmd/erigon"
|
2021-05-03 22:29:30 +02:00
|
|
|
"cmd/evm"
|
2020-09-25 11:00:31 +02:00
|
|
|
"cmd/rpcdaemon"
|
2021-05-03 22:29:30 +02:00
|
|
|
"cmd/rlpdump"
|
2020-09-25 11:00:31 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-06-08 15:41:43 +02:00
|
|
|
homepage = "https://github.com/ledgerwatch/erigon/";
|
|
|
|
description = "Ethereum node implementation focused on scalability and modularity";
|
2021-05-04 12:59:54 +02:00
|
|
|
license = with licenses; [ lgpl3Plus gpl3Plus ];
|
2021-08-08 19:11:45 +02:00
|
|
|
maintainers = with maintainers; [ d-xo ];
|
2020-09-25 11:00:31 +02:00
|
|
|
};
|
|
|
|
}
|