mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-23 09:00:51 +00:00
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:
committed by
Alyssa Ross
parent
580ce6a19f
commit
dac886831c
@@ -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
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user