From d0584aeeb0c2f5525252d5406e20456d34f7862a Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Wed, 30 Jul 2025 14:21:02 +0200 Subject: [PATCH] linux: fix cross The .unwrapped attributes are not correctly spliced. Use the top level attributes instead, which are spliced correctly. Fixes: e9b2edb49163 ("linux: un-simplify toolchain selection") --- pkgs/os-specific/linux/kernel/generic.nix | 10 +++++----- pkgs/os-specific/linux/kernel/manual-config.nix | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 047cff9b0081..38c518836fbf 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -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; diff --git a/pkgs/os-specific/linux/kernel/manual-config.nix b/pkgs/os-specific/linux/kernel/manual-config.nix index 8b33301ef6eb..b6ff72f0c884 100644 --- a/pkgs/os-specific/linux/kernel/manual-config.nix +++ b/pkgs/os-specific/linux/kernel/manual-config.nix @@ -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;