linux: fix cross

The .unwrapped attributes are not correctly spliced.  Use the top
level attributes instead, which are spliced correctly.

Fixes: e9b2edb491 ("linux: un-simplify toolchain selection")
This commit is contained in:
Alyssa Ross
2025-08-08 11:11:42 +02:00
parent 6e35c11839
commit d0584aeeb0
2 changed files with 11 additions and 11 deletions
+5 -5
View File
@@ -11,9 +11,9 @@
pahole,
lib,
stdenv,
rustc,
rustc-unwrapped,
rustPlatform,
rust-bindgen,
rust-bindgen-unwrapped,
# testing
emptyFile,
nixos,
@@ -126,7 +126,7 @@ let
commonStructuredConfig = import ./common-config.nix {
inherit lib stdenv version;
rustAvailable = lib.meta.availableOn stdenv.hostPlatform rustc;
rustAvailable = lib.meta.availableOn stdenv.hostPlatform rustc-unwrapped;
features = kernelFeatures; # Ensure we know of all extra patches, etc.
};
@@ -190,8 +190,8 @@ let
]
++ lib.optional (lib.versionAtLeast version "5.2") pahole
++ lib.optionals withRust [
rust-bindgen.unwrapped
rustc.unwrapped
rust-bindgen-unwrapped
rustc-unwrapped
];
RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;
@@ -22,8 +22,8 @@
kmod,
ubootTools,
fetchpatch,
rustc,
rust-bindgen,
rustc-unwrapped,
rust-bindgen-unwrapped,
rustPlatform,
}:
@@ -169,8 +169,8 @@ lib.makeOverridable (
]
++ optional (lib.versionAtLeast version "5.13") zstd
++ optionals withRust [
rustc.unwrapped
rust-bindgen.unwrapped
rustc-unwrapped
rust-bindgen-unwrapped
];
in
@@ -229,8 +229,8 @@ lib.makeOverridable (
zlib
]
++ optionals withRust [
rustc.unwrapped
rust-bindgen.unwrapped
rustc-unwrapped
rust-bindgen-unwrapped
];
RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;