13 inherit pname version;
15 src = fetchFromGitHub {
16 owner = "ledgerwatch";
19 hash = "sha256-B9FDGBx5ac1v0PqVK/2LhDH2seRthZxtaGu3G9flo0A=";
20 fetchSubmodules = true;
23 vendorHash = "sha256-bGVHIrICYWyHPgWWgEAIT+J/IIPjcWqTHeuqbT6lung=";
26 # Build errors in mdbx when format hardening is enabled:
27 # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
28 hardeningDisable = [ "format" ];
30 # Fix error: 'Caught SIGILL in blst_cgo_init'
31 # https://github.com/bnb-chain/bsc/issues/1521
32 CGO_CFLAGS = "-O -D__BLST_PORTABLE__";
33 CGO_CFLAGS_ALLOW = "-O -D__BLST_PORTABLE__";
42 # Matches the tags to upstream's release build configuration
43 # https://github.com/ledgerwatch/erigon/blob/0c0dbe5f3a81cf8f16da8e4838312ab80ebe5302/.goreleaser.yml
45 # Enabling silkworm also breaks the build as it requires dynamically linked libraries.
46 # If we need it in the future, we should consider packaging silkworm and silkworm-go
47 # as depenedencies explicitly.
54 passthru.updateScript = nix-update-script { };
57 homepage = "https://github.com/ledgerwatch/erigon/";
58 description = "Ethereum node implementation focused on scalability and modularity";
59 license = with licenses; [
63 maintainers = with maintainers; [