2021-08-24 09:22:39 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-09-25 10:00:31 +01:00
|
|
|
|
|
|
|
buildGoModule rec {
|
2021-06-08 14:41:43 +01:00
|
|
|
pname = "erigon";
|
2021-10-03 20:02:27 +01:00
|
|
|
version = "2021.09.04";
|
2020-09-25 10:00:31 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ledgerwatch";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-03 20:02:27 +01:00
|
|
|
sha256 = "0l0w1badhvlh1rgqzvlmy5k7xhb1nf4f5dmhkl935a5ila08aak3";
|
2020-09-25 10:00:31 +01:00
|
|
|
};
|
|
|
|
|
2021-10-03 20:02:27 +01:00
|
|
|
vendorSha256 = "1hbfmq76zm50zwmlh3jblriwq2k1mp99d8lg8xzxwy56hncgfj8k";
|
2020-09-25 10:00:31 +01:00
|
|
|
runVend = true;
|
|
|
|
|
2021-06-08 14:41:43 +01: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 10:00:31 +01:00
|
|
|
subPackages = [
|
2021-06-08 14:41:43 +01:00
|
|
|
"cmd/erigon"
|
2021-05-03 21:29:30 +01:00
|
|
|
"cmd/evm"
|
2020-09-25 10:00:31 +01:00
|
|
|
"cmd/rpcdaemon"
|
2021-05-03 21:29:30 +01:00
|
|
|
"cmd/rlpdump"
|
2020-09-25 10:00:31 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-08 14:41:43 +01:00
|
|
|
homepage = "https://github.com/ledgerwatch/erigon/";
|
|
|
|
description = "Ethereum node implementation focused on scalability and modularity";
|
2021-05-04 11:59:54 +01:00
|
|
|
license = with licenses; [ lgpl3Plus gpl3Plus ];
|
2021-08-08 18:11:45 +01:00
|
|
|
maintainers = with maintainers; [ d-xo ];
|
2020-09-25 10:00:31 +01:00
|
|
|
};
|
|
|
|
}
|