From 5db8c885470584789547c2b24544bcd98f758721 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sun, 24 Jul 2011 20:24:12 +0000 Subject: [PATCH] Fix problem with linux 3.0 trying to install in /nix/store/... Thanks to MarcWeber on IRC for helping with this svn path=/nixpkgs/trunk/; revision=27921 --- pkgs/os-specific/linux/kernel/generic.nix | 8 +++++++- pkgs/os-specific/linux/kernel/linux-3.0.nix | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index ce609f23849..46ebb2b8fff 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 c9bde0eafe9..169c37dec49 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; }