Skip to content

Commit 856f9fe

Browse files
committed
foundry: Build using the fenix rust toolchain
1 parent b1cf993 commit 856f9fe

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pkgs/default.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
perSystem = {
1616
self',
17+
inputs',
1718
pkgs,
1819
pkgsUnstable,
1920
pkgs2311,
@@ -24,6 +25,13 @@
2425
inherit (lib.extras.flakes) platformPkgs platformApps;
2526
callPackageUnstable = pkgsUnstable.callPackage;
2627
callPackage2311 = pkgs2311.callPackage;
28+
29+
rustToolchain = inputs'.fenix.packages.minimal.toolchain;
30+
31+
rustPlatform = pkgsUnstable.makeRustPlatform {
32+
cargo = rustToolchain;
33+
rustc = rustToolchain;
34+
};
2735
in {
2836
packages = platformPkgs system rec {
2937
besu = callPackageUnstable ./besu {};
@@ -44,7 +52,7 @@
4452
ethdo = callPackage ./ethdo {inherit bls mcl;};
4553
ethereal = callPackage ./ethereal {inherit bls mcl;};
4654
evmc = callPackage ./evmc {};
47-
foundry = callPackageUnstable ./foundry {};
55+
foundry = callPackageUnstable ./foundry {inherit rustPlatform;};
4856
foundry-bin = inputs.foundry-nix.defaultPackage.${system}.overrideAttrs (_oldAttrs: {
4957
# TODO: Uncomment when https://github.com/shazow/foundry.nix/issues/23
5058
# meta.platforms = [system];

0 commit comments

Comments
 (0)