Skip to content

Commit cd12090

Browse files
committed
fix(pkgs/nethermind): Use specific version of Nixpkgs to build Nethermind
As newer version of Nixpkgs fail to build it, for example: https://github.com/metacraft-labs/ethereum.nix/actions/runs/11453835003/job/31867023628
1 parent 1837874 commit cd12090

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

flake.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
nixpkgs.url = "github:nixos/nixpkgs/24.05";
1212
nixpkgs-2311.url = "github:nixos/nixpkgs/23.11";
1313
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
14+
nixpkgs-nethermind.url = "github:nixos/nixpkgs?rev=9c513fc6fb75142f6aec6b7545cb8af2236b80f5";
1415

1516
foundry-nix = {
1617
url = "github:shazow/foundry.nix/monthly";
@@ -105,6 +106,10 @@
105106
inherit system;
106107
nixpkgs = inputs.nixpkgs-2311;
107108
};
109+
pkgsNethermind = lib.extras.nix.mkNixpkgs {
110+
inherit system;
111+
nixpkgs = inputs.nixpkgs-nethermind;
112+
};
108113
};
109114

110115
# devshell

pkgs/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@
1818
pkgs,
1919
pkgsUnstable,
2020
pkgs2311,
21+
pkgsNethermind,
2122
system,
2223
...
2324
}: let
2425
inherit (pkgs) callPackage;
2526
inherit (lib.extras.flakes) platformPkgs platformApps;
2627
callPackageUnstable = pkgsUnstable.callPackage;
2728
callPackage2311 = pkgs2311.callPackage;
29+
callPackageNethermind = pkgsNethermind.callPackage;
2830

2931
rustToolchain = inputs'.fenix.packages.minimal.toolchain;
3032

@@ -67,7 +69,7 @@
6769
mev-boost-builder = callPackage ./mev-boost-builder {inherit blst;};
6870
mev-boost-relay = callPackage ./mev-boost-relay {inherit blst;};
6971
mev-rs = callPackage ./mev-rs {};
70-
nethermind = callPackageUnstable ./nethermind {};
72+
nethermind = callPackageNethermind ./nethermind {};
7173
nimbus = callPackageUnstable ./nimbus {};
7274
nimbus-eth2 = callPackageUnstable ./nimbus-eth2 {
7375
# For now the nimbus team prefers nim 1.6 over 2.0.

0 commit comments

Comments
 (0)