nixpkgs/pkgs/os-specific/linux/kernel/linux-2.6.18.nix
Eelco Dolstra 6225e46baf * Use a pure depmod.
svn path=/nixpkgs/trunk/; revision=6916
2006-10-31 16:03:19 +00:00

40 lines
1.0 KiB
Nix

{ stdenv, fetchurl, perl, mktemp, module_init_tools
# A list of patches to apply to the kernel. Each element of this list
# should be an attribute set {name, patch} where `name' is a
# symbolic name and `patch' is the actual patch. The patch may
# optionally be compressed with gzip or bzip2.
, kernelPatches ? []
}:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "linux-2.6.18.1";
builder = ./builder.sh;
src = fetchurl {
url = ftp://ftp.nl.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.1.tar.bz2;
md5 = "38f00633b02f07819d17bcd87d03eb3a";
};
patches = map (p: p.patch) kernelPatches;
config = ./config-2.6.18.1-up;
buildInputs = [perl mktemp];
arch="i386";
inherit module_init_tools;
meta = {
description =
"The Linux kernel" +
(if kernelPatches == [] then "" else
" (with patches: "
+ (let lib = import ../../../lib;
in lib.concatStrings (lib.intersperse ", " (map (x: x.name) kernelPatches)))
+ ")");
};
}