first stub for kernel compilations. Still a lot missing, doesn't install
everything correctly, the config currently compile quite a bit (too much for quick tests). This will change. --This line, and those below, will be ignored-- A linux/kernel A linux/kernel/builder.sh A linux/kernel/default.nix A linux/kernel/config svn path=/nixpkgs/trunk/; revision=3181
This commit is contained in:
parent
3385ccd1f7
commit
ef94be2ae1
10
pkgs/os-specific/linux/kernel/builder.sh
Normal file
10
pkgs/os-specific/linux/kernel/builder.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
. $stdenv/setup
|
||||
|
||||
buildPhase() {
|
||||
cp $config .config
|
||||
make
|
||||
}
|
||||
|
||||
buildPhase=buildPhase
|
||||
|
||||
genericBuild
|
2763
pkgs/os-specific/linux/kernel/config
Normal file
2763
pkgs/os-specific/linux/kernel/config
Normal file
File diff suppressed because it is too large
Load diff
15
pkgs/os-specific/linux/kernel/default.nix
Normal file
15
pkgs/os-specific/linux/kernel/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{stdenv, fetchurl, perl}:
|
||||
|
||||
assert stdenv.system == "i686-linux";
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "linux-2.6.12-i386";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.nluug.nl/pub/os/Linux/system/kernel/v2.6/linux-2.6.11.12.tar.bz2;
|
||||
md5 = "7e3b6e630bb05c1a8c1ba46e010dbe44";
|
||||
};
|
||||
config = ./config;
|
||||
inherit perl;
|
||||
buildInputs = [perl];
|
||||
}
|
Loading…
Reference in a new issue