lmao perhaps

This commit is contained in:
mjallen18
2026-03-10 10:51:32 -05:00
parent c13ce86810
commit 1616c6766e
4 changed files with 131 additions and 11 deletions

View File

@@ -0,0 +1,9 @@
# Resolve the Rust toolchain packages needed for CONFIG_RUST=y kernel builds.
# Uses buildPackages so cross-compilation works correctly (the compiler runs on
# the build machine but produces code for the host/target).
{ pkgs, ... }:
{
rustc = pkgs.buildPackages.rustc-unwrapped;
rustBindgen = pkgs.buildPackages.rust-bindgen-unwrapped;
rustLibSrc = pkgs.buildPackages.rustPlatform.rustLibSrc;
}