2007-05-28 19:55:20 +04:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-06-07 17:46:50 +04:00
|
|
|
name = "linux-headers-2.6.21.3";
|
2007-05-28 19:55:20 +04:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 17:59:40 +04:00
|
|
|
url = "mirror://kernel/linux/kernel/v2.6/linux-2.6.21.3.tar.bz2";
|
2007-06-07 17:46:50 +04:00
|
|
|
sha256 = "17rxvw42z4amijb8nya54c2h6bb8gnxnr628arv8shmsccf8qsp5";
|
2007-05-28 19:55:20 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
platform =
|
|
|
|
if stdenv.system == "i686-linux" then "i386" else
|
|
|
|
if stdenv.system == "x86_64-linux" then "x86_64" else
|
|
|
|
if stdenv.system == "powerpc-linux" then "powerpc" else
|
|
|
|
abort "don't know what the kernel include directory is called for this platform";
|
|
|
|
|
|
|
|
extraIncludeDirs =
|
|
|
|
if stdenv.system == "powerpc-linux" then ["ppc"] else [];
|
|
|
|
}
|