1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 21:21:06 +00:00

Fix version problems in Zen-kernel expression

svn path=/nixpkgs/trunk/; revision=20727
This commit is contained in:
Michael Raskin 2010-03-18 05:26:50 +00:00
parent 6574a35e56
commit b4b3cb2d01

View file

@ -6,23 +6,26 @@ args @ {stdenv, fetchurl, xz, runCommand, userModeLinux ? false, extraConfig ? "
let let
conf = import ../kernel/config-blocks.nix; conf = import ../kernel/config-blocks.nix;
baseKernelVersion = "2.6.33";
ZenSuffix = "zen1";
in in
import ../kernel/generic.nix ( import ../kernel/generic.nix (
rec { rec {
version = "2.6.32-zen4"; version = "${baseKernelVersion}-${ZenSuffix}";
src = fetchurl { src = fetchurl {
url = "mirror://kernel/linux/kernel/v2.6/linux-2.6.33.tar.bz2"; url = "mirror://kernel/linux/kernel/v2.6/linux-${baseKernelVersion}.tar.bz2";
sha256 = "1inmam21w13nyf5imgdb5palhiap41zcxf9k32i4ck1w7gg3gqk3"; sha256 = "1inmam21w13nyf5imgdb5palhiap41zcxf9k32i4ck1w7gg3gqk3";
}; };
kernelPatches = [ kernelPatches = [
{ {
name = "zen4"; name = "${ZenSuffix}";
patch = runCommand "2.6.33-zen1.patch" {} "${xz}/bin/lzma -d < ${ fetchurl { patch = runCommand "${baseKernelVersion}-${ZenSuffix}.patch" {} "${xz}/bin/lzma -d < ${ fetchurl {
name = "2.6.33-zen1"; name = "${baseKernelVersion}-${ZenSuffix}.patch.lzma";
url = "http://downloads.zen-kernel.org/2.6.33/2.6.33-zen1.patch.lzma"; url = "http://downloads.zen-kernel.org/${baseKernelVersion}/${baseKernelVersion}-${ZenSuffix}.patch.lzma";
sha256 = "0a72d8allr4qi4p6hbbjh33kmcgbg84as0dfb50gsffvaj2d3kwf"; sha256 = "0a72d8allr4qi4p6hbbjh33kmcgbg84as0dfb50gsffvaj2d3kwf";
} } > $out"; } } > $out";
} }