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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user