diff --git a/nix/cross-helpers.nix b/nix/cross-helpers.nix index fc4fda3..16269f6 100644 --- a/nix/cross-helpers.nix +++ b/nix/cross-helpers.nix @@ -85,7 +85,9 @@ in rec { crossParams = if host == target then { cc = pkgs.stdenv.cc; - extraBuildEnv = { }; + extraBuildEnv = { + RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; + }; } else rec { cc = pkgsCross.stdenv.cc; extraBuildEnv = {