1 { lib, buildGoModule, fetchFromGitHub, nix-update-script }:
10 src = fetchFromGitHub {
11 owner = "ledgerwatch";
14 hash = "sha256-208gJTLaVEikH92ZDEULPtfnKJyZhZCRCDfCxewABK4=";
15 fetchSubmodules = true;
18 vendorHash = "sha256-TUK7obI1wOXroI1NE1GfIP+NMW909+z92Wpy9B/soY0=";
21 # Build errors in mdbx when format hardening is enabled:
22 # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
23 hardeningDisable = [ "format" ];
25 # Fix error: 'Caught SIGILL in blst_cgo_init'
26 # https://github.com/bnb-chain/bsc/issues/1521
27 CGO_CFLAGS = "-O -D__BLST_PORTABLE__";
28 CGO_CFLAGS_ALLOW = "-O -D__BLST_PORTABLE__";
37 # Matches the tags to upstream's release build configuration
38 # https://github.com/ledgerwatch/erigon/blob/0c0dbe5f3a81cf8f16da8e4838312ab80ebe5302/.goreleaser.yml
40 # Enabling silkworm also breaks the build as it requires dynamically linked libraries.
41 # If we need it in the future, we should consider packaging silkworm and silkworm-go
42 # as depenedencies explicitly.
43 tags = "-tags=nosqlite,noboltdb,nosilkworm";
45 passthru.updateScript = nix-update-script { };
48 homepage = "https://github.com/ledgerwatch/erigon/";
49 description = "Ethereum node implementation focused on scalability and modularity";
50 license = with licenses; [ lgpl3Plus gpl3Plus ];
51 maintainers = with maintainers; [ d-xo happysalada ];