diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 5979b038283..15811713324 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -114,7 +114,10 @@ stdenv.mkDerivation { kernelConfig = kernelConfigFun configCross; - buildInputs = lib.optional (cp.uboot != null) (ubootChooser cp.uboot); + # The substitution of crossAttrs happens *after* the stdenv cross adapter sets + # the parameters for the usual stdenv. Thus, we need to specify + # the ".hostDrv" in the buildInputs here. + buildInputs = lib.optional (cp.uboot != null) (ubootChooser cp.uboot).hostDrv; }; meta = {