diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index ce609f238499..46ebb2b8fff4 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -35,6 +35,7 @@ , extraMeta ? {} , ubootChooser ? null , postInstall ? "" +, setModuleDir ? true , # After the builder did a 'make all' (kernel + modules) # we force building the target asked: bzImage/zImage/uImage/... @@ -74,7 +75,11 @@ stdenv.mkDerivation { generateConfig = ./generate-config.pl; - inherit preConfigure src module_init_tools localVersion postBuild postInstall; + inherit preConfigure src module_init_tools localVersion postInstall; + + postBuild = (if setModuleDir then "" else '' + eval "$(type installPhase | sed -e '1d' -e '/export MODULE_DIR/d')"; + '') + postBuild; patches = map (p: p.patch) kernelPatches; @@ -140,3 +145,4 @@ stdenv.mkDerivation { platforms = lib.platforms.linux; } // extraMeta; } + diff --git a/pkgs/os-specific/linux/kernel/linux-3.0.nix b/pkgs/os-specific/linux/kernel/linux-3.0.nix index c9bde0eafe9a..169c37dec492 100644 --- a/pkgs/os-specific/linux/kernel/linux-3.0.nix +++ b/pkgs/os-specific/linux/kernel/linux-3.0.nix @@ -200,6 +200,8 @@ import ./generic.nix ( config = configWithPlatform stdenv.platform; configCross = configWithPlatform stdenv.cross.platform; + setModuleDir = false; + features.iwlwifi = true; }