@@ -1,29 +1,33 @@
1−{ lib, buildGoModule, fetchFromGitHub }:
1+{ stdenv, lib, buildGoModule, fetchFromGitHub }:
22
33buildGoModule rec {
4− pname = "turbo-geth";
5− version = "2021.05.02";
4+ pname = "erigon";
5+ version = "2021.08.01";
66
77 src = fetchFromGitHub {
88 owner = "ledgerwatch";
99 repo = pname;
1010 rev = "v${version}";
11− sha256 = "sha256-7sTRAAlKZOdwi/LRbIEDKWpBe1ol8pZfEf2KIC4s0xk=";
11+ sha256 = "sha256-fjMkCCeQa/IHB4yXlL7Qi8J9wtZm90l3xIA72LeoW8M=";
1212 };
1313
14− vendorSha256 = "1d0ahdb2b5v8nxq3kdxw151phnyv6habb8kr8qjaq3kyhcnyk6ng";
14+ vendorSha256 = "1vsgd19an592dblm9afasmh8cd0x2frw5pvnxkxd2fikhy2mibbs";
1515 runVend = true;
1616
17+ # Build errors in mdbx when format hardening is enabled:
18+ # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
19+ hardeningDisable = [ "format" ];
20+
1721 subPackages = [
18− "cmd/tg"
22+ "cmd/erigon"
1923 "cmd/evm"
2024 "cmd/rpcdaemon"
2125 "cmd/rlpdump"
2226 ];
2327
2428 meta = with lib; {
25− homepage = "https://github.com/ledgerwatch/turbo-geth/";
26− description = "Ethereum node and geth fork focused on scalability and modularity";
29+ homepage = "https://github.com/ledgerwatch/erigon/";
30+ description = "Ethereum node implementation focused on scalability and modularity";
2731 license = with licenses; [ lgpl3Plus gpl3Plus ];
2832 maintainers = with maintainers; [ d-xo ];
2933 };