1
1
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:
Samuel Dionne-Riel 2020-03-26 22:22:32 -04:00
parent 84aa84e606
commit 4976412278

View File

@ -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