diff --git a/src/coreboot/default.nix b/src/coreboot/default.nix index 469f7b8..b202038 100644 --- a/src/coreboot/default.nix +++ b/src/coreboot/default.nix @@ -19,6 +19,8 @@ let version = "4.9"; inherit (nixpkgsOnBuildForBuild) stdenv lib git python3 ncurses fetchgit; + buildLinuxConfigFile = (nixpkgsOnBuildForHost.buildLinux { inherit src version; }).passthru.configfile; + generate-config-pl = buildLinuxConfigFile.generateConfig; src = fetchgit { url = "https://review.coreboot.org/coreboot"; branchName = "${version}"; @@ -129,7 +131,7 @@ stdenv.mkDerivation { passAsFile = [ "structuredConfig" ]; structuredConfig = (lib.evalModules { modules = [ - (import ) + buildLinuxConfigFile.passthru.module { settings = with lib.kernel; config // { "DEFAULT_CONSOLE_LOGLEVEL_${toString console_loglevel}" = lib.mkForce yes; @@ -162,7 +164,7 @@ stdenv.mkDerivation { SRC=. \ BUILD_ROOT=$(pwd) \ KERNEL_CONFIG=$structuredConfigPath \ - perl -w ${} + perl -w ${generate-config-pl} runHook postConfigure '';