buildLinux: kernel.configEnv: comply with overrideAttrs

Override `finalAttrs.finalPackage` instead of `kernel` from the let-in
block to make configEnv behave in accordance with overrideAttrs of the
result package.

Continuation of commit f10331cf2e ("buildLinux: passthru by
<pkg>.overrideAttrs instead of lib.extendDerivation")
This commit is contained in:
Yueh-Shun Li
2024-02-27 06:12:43 +08:00
committed by Alyssa Ross
parent 580ce6a19f
commit dac886831c

View File

@@ -239,8 +239,8 @@ kernel.overrideAttrs (finalAttrs: previousAttrs: {
# Adds dependencies needed to edit the config:
# nix-shell '<nixpkgs>' -A linux.configEnv --command 'make nconfig'
configEnv = kernel.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs or [] ++ (with buildPackages; [
configEnv = finalAttrs.finalPackage.overrideAttrs (previousAttrs: {
nativeBuildInputs = previousAttrs.nativeBuildInputs or [ ] ++ (with buildPackages; [
pkg-config ncurses
]);
});