1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +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 = { passthru = {
# Patching over this configuration to expose menuconfig. # Patching over this configuration to expose menuconfig.
menuconfig = kernel.overrideAttrs({nativeBuildInputs ? [] , ...}: { 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 ++ [ nativeBuildInputs = nativeBuildInputs ++ [
pkgconfig pkgconfig
ncurses ncurses