mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 11:03:37 +03:00
kernel-builder: Provide patched sources to menuconfig
Important, otherwise we lose additional options that may have been patched-in!
This commit is contained in:
parent
84aa84e606
commit
4976412278
@ -233,6 +233,21 @@ let kernel = stdenv.mkDerivation {
|
||||
passthru = {
|
||||
# Patching over this configuration to expose menuconfig.
|
||||
menuconfig = kernel.overrideAttrs({nativeBuildInputs ? [] , ...}: {
|
||||
# What, another level of overriding???
|
||||
# This time, it's to get patched sources.
|
||||
# We'll need them at run-time for nconfig.
|
||||
src = kernel.overrideAttrs({...}: {
|
||||
buildPhase = ":";
|
||||
configurePhase = ":";
|
||||
fixupPhase = ":";
|
||||
|
||||
installPhase = ''
|
||||
cp -prf . $out
|
||||
'';
|
||||
});
|
||||
|
||||
patchPhase = "echo 'Skipping, already ran...'";
|
||||
|
||||
nativeBuildInputs = nativeBuildInputs ++ [
|
||||
pkgconfig
|
||||
ncurses
|
||||
|
Loading…
Reference in New Issue
Block a user