diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2010-03-18 05:26:50 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2010-03-18 05:26:50 +0000 |
commit | b4b3cb2d013dfc1073da9036db26a77825063f7a (patch) | |
tree | 4201337f0699470b773e1e1f3185f03ba17532dc /pkgs/os-specific | |
parent | 6574a35e56e764393b25b1dacefade25a73516c3 (diff) |
Fix version problems in Zen-kernel expression
svn path=/nixpkgs/trunk/; revision=20727
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r-- | pkgs/os-specific/linux/zen-kernel/2.6.33-zen1.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/zen-kernel/2.6.33-zen1.nix b/pkgs/os-specific/linux/zen-kernel/2.6.33-zen1.nix index ae27dde09cc1b..a3824a4fb15e9 100644 --- a/pkgs/os-specific/linux/zen-kernel/2.6.33-zen1.nix +++ b/pkgs/os-specific/linux/zen-kernel/2.6.33-zen1.nix @@ -6,23 +6,26 @@ args @ {stdenv, fetchurl, xz, runCommand, userModeLinux ? false, extraConfig ? " let conf = import ../kernel/config-blocks.nix; + baseKernelVersion = "2.6.33"; + ZenSuffix = "zen1"; + in import ../kernel/generic.nix ( rec { - version = "2.6.32-zen4"; + version = "${baseKernelVersion}-${ZenSuffix}"; 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"; }; kernelPatches = [ { - name = "zen4"; - patch = runCommand "2.6.33-zen1.patch" {} "${xz}/bin/lzma -d < ${ fetchurl { - name = "2.6.33-zen1"; - url = "http://downloads.zen-kernel.org/2.6.33/2.6.33-zen1.patch.lzma"; + name = "${ZenSuffix}"; + patch = runCommand "${baseKernelVersion}-${ZenSuffix}.patch" {} "${xz}/bin/lzma -d < ${ fetchurl { + name = "${baseKernelVersion}-${ZenSuffix}.patch.lzma"; + url = "http://downloads.zen-kernel.org/${baseKernelVersion}/${baseKernelVersion}-${ZenSuffix}.patch.lzma"; sha256 = "0a72d8allr4qi4p6hbbjh33kmcgbg84as0dfb50gsffvaj2d3kwf"; } } > $out"; } |