@ -19,6 +19,8 @@
let
let
version = " 4 . 9 " ;
version = " 4 . 9 " ;
inherit ( nixpkgsOnBuildForBuild ) stdenv lib git python3 ncurses fetchgit ;
inherit ( nixpkgsOnBuildForBuild ) stdenv lib git python3 ncurses fetchgit ;
buildLinuxConfigFile = ( nixpkgsOnBuildForHost . buildLinux { inherit src version ; } ) . passthru . configfile ;
generate-config-pl = buildLinuxConfigFile . generateConfig ;
src = fetchgit {
src = fetchgit {
url = " h t t p s : / / r e v i e w . c o r e b o o t . o r g / c o r e b o o t " ;
url = " h t t p s : / / r e v i e w . c o r e b o o t . o r g / c o r e b o o t " ;
branchName = " ${ version } " ;
branchName = " ${ version } " ;
@ -129,7 +131,7 @@ stdenv.mkDerivation {
passAsFile = [ " s t r u c t u r e d C o n f i g " ] ;
passAsFile = [ " s t r u c t u r e d C o n f i g " ] ;
structuredConfig = ( lib . evalModules {
structuredConfig = ( lib . evalModules {
modules = [
modules = [
( import <nixpkgs/nixos/modules/system/boot/kernel_config.nix> )
buildLinuxConfigFile . passthru . module
{
{
settings = with lib . kernel ; config // {
settings = with lib . kernel ; config // {
" D E F A U L T _ C O N S O L E _ L O G L E V E L _ ${ toString console_loglevel } " = lib . mkForce yes ;
" D E F A U L T _ C O N S O L E _ L O G L E V E L _ ${ toString console_loglevel } " = lib . mkForce yes ;
@ -162,7 +164,7 @@ stdenv.mkDerivation {
SRC = . \
SRC = . \
BUILD_ROOT = $ ( pwd ) \
BUILD_ROOT = $ ( pwd ) \
KERNEL_CONFIG = $ structuredConfigPath \
KERNEL_CONFIG = $ structuredConfigPath \
perl - w $ { <nixpkgs/pkgs/os-specific/linux/kernel/generate-config.pl> }
perl - w $ { generate-config-pl }
runHook postConfigure
runHook postConfigure
'' ;
'' ;