2007-05-28 17:55:20 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-06-07 15:46:50 +02:00
|
|
|
name = "linux-headers-2.6.21.3";
|
2007-05-28 17:55:20 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2007-08-27 15:59:40 +02:00
|
|
|
url = "mirror://kernel/linux/kernel/v2.6/linux-2.6.21.3.tar.bz2";
|
2007-06-07 15:46:50 +02:00
|
|
|
sha256 = "17rxvw42z4amijb8nya54c2h6bb8gnxnr628arv8shmsccf8qsp5";
|
2007-05-28 17:55:20 +02: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 [];
|
|
|
|
}
|