summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/linux-2.6.31-rc3.nix
blob: c523f276230eff5647fed05ac6d3cbe5941d2cc0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
args @ {stdenv, fetchurl, userModeLinux ? false, oldI686 ? false, ...}:

assert !userModeLinux;

import ./generic.nix (

  let
    baseVersion = "2.6.30"; 
  in

  rec {
    version = "2.6.31-rc3";
  
    src = fetchurl {
      url = "mirror://kernel/linux/kernel/v2.6/linux-${baseVersion}.tar.bz2";
      sha256 = "d7b9f19b92fd5c693c16cd62f441d051b699f28ec6a175d1b464e58bacd8c78f";
    };

    features = {
      iwlwifi = true;
    };
 
    config =
      if stdenv.system == "i686-linux" then if oldI686 then ./config-2.6.31-rc4-all-mod-i686-older else 
        ./config-2.6.31-rc3-all-mod-i686 else
      if stdenv.system == "x86_64-linux" then ./config-2.6.31-rc3-all-mod-amd64 else
      abort "No kernel configuration for your platform!";
  }

  // args
)