nixpkgs/pkgs/applications/blockchains/erigon.nix

35 lines
929 B
Nix
Raw Normal View History

2021-06-08 13:41:43 +00:00
{ stdenv, lib, buildGoModule, fetchFromGitHub }:
2020-09-25 09:00:31 +00:00
buildGoModule rec {
2021-06-08 13:41:43 +00:00
pname = "erigon";
2021-08-13 08:44:30 +00:00
version = "2021.08.02";
2020-09-25 09:00:31 +00:00
src = fetchFromGitHub {
owner = "ledgerwatch";
repo = pname;
rev = "v${version}";
2021-08-13 08:44:30 +00:00
sha256 = "sha256-pyqvzpsDk24UEtSx4qmDew9zRK45pD5i4Qv1uJ03tmk=";
2020-09-25 09:00:31 +00:00
};
2021-08-13 08:44:30 +00:00
vendorSha256 = "sha256-FwKlQH8vEtWNDql1pmHzKneIwmJ7cg5LYkETVswO6pc=";
2020-09-25 09:00:31 +00:00
runVend = true;
2021-06-08 13:41:43 +00: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 09:00:31 +00:00
subPackages = [
2021-06-08 13:41:43 +00:00
"cmd/erigon"
2021-05-03 20:29:30 +00:00
"cmd/evm"
2020-09-25 09:00:31 +00:00
"cmd/rpcdaemon"
2021-05-03 20:29:30 +00:00
"cmd/rlpdump"
2020-09-25 09:00:31 +00:00
];
meta = with lib; {
2021-06-08 13:41:43 +00:00
homepage = "https://github.com/ledgerwatch/erigon/";
description = "Ethereum node implementation focused on scalability and modularity";
2021-05-04 10:59:54 +00:00
license = with licenses; [ lgpl3Plus gpl3Plus ];
2021-08-08 17:11:45 +00:00
maintainers = with maintainers; [ d-xo ];
2020-09-25 09:00:31 +00:00
};
}