mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
nixos/tests: remove minimal-kernel module
It's not used, doesn't build, and seems like the only reason to have `manualConfig` take `stdenv` as an argument.
This commit is contained in:
parent
cf568d20d5
commit
f677cbabe9
3 changed files with 3 additions and 38 deletions
|
@ -1,28 +0,0 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
configfile = builtins.storePath (builtins.toFile "config" (lib.concatStringsSep "\n"
|
||||
(map (builtins.getAttr "configLine") config.system.requiredKernelConfig))
|
||||
);
|
||||
|
||||
origKernel = pkgs.buildLinux {
|
||||
inherit (pkgs.linux) src version stdenv;
|
||||
inherit configfile;
|
||||
allowImportFromDerivation = true;
|
||||
kernelPatches = [ pkgs.kernelPatches.cifs_timeout_2_6_38 ];
|
||||
};
|
||||
|
||||
kernel = origKernel // (derivation (origKernel.drvAttrs // {
|
||||
configurePhase = ''
|
||||
runHook preConfigure
|
||||
mkdir ../build
|
||||
make $makeFlags "''${makeFlagsArray[@]}" mrproper
|
||||
make $makeFlags "''${makeFlagsArray[@]}" KCONFIG_ALLCONFIG=${configfile} allnoconfig
|
||||
runHook postConfigure
|
||||
'';
|
||||
}));
|
||||
|
||||
kernelPackages = pkgs.linuxPackagesFor kernel;
|
||||
in {
|
||||
boot.kernelPackages = kernelPackages;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue