forked from mirrors/nixpkgs
Adding tuxonice for some recent kernels.
svn path=/nixpkgs/trunk/; revision=26447
This commit is contained in:
parent
84ca32b293
commit
f6e3d3e10d
|
@ -20,6 +20,22 @@ let
|
|||
FRAMEBUFFER_CONSOLE y
|
||||
'';
|
||||
|
||||
makeTuxonicePatch = { version, kernelVersion, sha256,
|
||||
url ? "http://tuxonice.net/files/tuxonice-${version}-for-${kernelVersion}.patch.bz2" }:
|
||||
{ name = "tuxonice-${kernelVersion}";
|
||||
patch = stdenv.mkDerivation {
|
||||
name = "tuxonice-${version}-for-${kernelVersion}.patch";
|
||||
src = fetchurl {
|
||||
inherit url sha256;
|
||||
};
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
source $stdenv/setup
|
||||
bunzip2 -c $src > $out
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
{
|
||||
|
@ -235,20 +251,29 @@ in
|
|||
patch = ./guruplug-mach-type.patch;
|
||||
};
|
||||
|
||||
tuxonice_2_6_35 =
|
||||
{ name = "tuxonice-2.6.35";
|
||||
patch = stdenv.mkDerivation {
|
||||
name = "tuxonice-3.2-rc2-for-2.6.35.patch";
|
||||
src = fetchurl {
|
||||
url = http://tuxonice.net/files/tuxonice-3.2-rc2-for-2.6.35.patch.bz2;
|
||||
sha256 = "00jbrqq6p1lyvli835wczc0vqsn0z73jpb2aak3ak0vgnvsxw37q";
|
||||
};
|
||||
phases = [ "installPhase" ];
|
||||
installPhase = ''
|
||||
source $stdenv/setup
|
||||
bunzip2 -c $src > $out
|
||||
'';
|
||||
};
|
||||
};
|
||||
tuxonice_2_6_34 = makeTuxonicePatch {
|
||||
version = "3.2-rc2";
|
||||
kernelVersion = "2.6.34";
|
||||
sha256 = "0bagqinmky1kmvg3vw8cdysqklxrsfjm7gqrpxviq9jq8vyycviz";
|
||||
};
|
||||
|
||||
tuxonice_2_6_35 = makeTuxonicePatch {
|
||||
version = "3.2-rc2";
|
||||
kernelVersion = "2.6.35";
|
||||
sha256 = "00jbrqq6p1lyvli835wczc0vqsn0z73jpb2aak3ak0vgnvsxw37q";
|
||||
};
|
||||
|
||||
tuxonice_2_6_36 = makeTuxonicePatch {
|
||||
version = "3.2-rc2";
|
||||
kernelVersion = "2.6.36";
|
||||
sha256 = "1vcw3gpjdghnkli46j37pc6rp8mqk8dh688jv8rppzsry0ll7b7k";
|
||||
};
|
||||
|
||||
tuxonice_2_6_37 = makeTuxonicePatch {
|
||||
version = "3.2-rc2";
|
||||
kernelVersion = "2.6.37";
|
||||
url = "http://tuxonice.net/files/current-tuxonice-for-2.6.37.patch_0.bz2";
|
||||
sha256 = "0acllabvbm9pmjnh0zx9mgnp47xbrl9ih6i037c85h0ymnjsxdhk";
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -4963,6 +4963,12 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
linux_2_6_34_tuxonice = linux_2_6_34.override (attrs: {
|
||||
kernelPatches = attrs.kernelPatches ++ [
|
||||
kernelPatches.tuxonice_2_6_34
|
||||
];
|
||||
});
|
||||
|
||||
linux_2_6_35 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.35.nix) {
|
||||
inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser;
|
||||
kernelPatches =
|
||||
|
@ -5021,6 +5027,12 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
linux_2_6_36_tuxonice = linux_2_6_36.override (attrs: {
|
||||
kernelPatches = attrs.kernelPatches ++ [
|
||||
kernelPatches.tuxonice_2_6_36
|
||||
];
|
||||
});
|
||||
|
||||
linux_2_6_37 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.37.nix) {
|
||||
inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser;
|
||||
kernelPatches =
|
||||
|
@ -5031,6 +5043,12 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
linux_2_6_37_tuxonice = linux_2_6_37.override (attrs: {
|
||||
kernelPatches = attrs.kernelPatches ++ [
|
||||
kernelPatches.tuxonice_2_6_37
|
||||
];
|
||||
});
|
||||
|
||||
linux_2_6_38 = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.38.nix) {
|
||||
inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser;
|
||||
kernelPatches =
|
||||
|
@ -5153,10 +5171,13 @@ let
|
|||
recurseIntoAttrs (linuxPackagesFor linux_2_6_32_xen pkgs.linuxPackages_2_6_32_xen);
|
||||
linuxPackages_2_6_33 = recurseIntoAttrs (linuxPackagesFor linux_2_6_33 pkgs.linuxPackages_2_6_33);
|
||||
linuxPackages_2_6_34 = recurseIntoAttrs (linuxPackagesFor linux_2_6_34 pkgs.linuxPackages_2_6_34);
|
||||
linuxPackages_2_6_34_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_34_tuxonice pkgs.linuxPackages_2_6_34_tuxonice);
|
||||
linuxPackages_2_6_35 = recurseIntoAttrs (linuxPackagesFor linux_2_6_35 pkgs.linuxPackages_2_6_35);
|
||||
linuxPackages_2_6_35_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_35_tuxonice pkgs.linuxPackages_2_6_35);
|
||||
linuxPackages_2_6_35_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_35_tuxonice pkgs.linuxPackages_2_6_35_tuxonice);
|
||||
linuxPackages_2_6_36 = recurseIntoAttrs (linuxPackagesFor linux_2_6_36 pkgs.linuxPackages_2_6_36);
|
||||
linuxPackages_2_6_36_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_36_tuxonice pkgs.linuxPackages_2_6_36_tuxonice);
|
||||
linuxPackages_2_6_37 = recurseIntoAttrs (linuxPackagesFor linux_2_6_37 pkgs.linuxPackages_2_6_37);
|
||||
linuxPackages_2_6_37_tuxonice = recurseIntoAttrs (linuxPackagesFor linux_2_6_37_tuxonice pkgs.linuxPackages_2_6_37_tuxonice);
|
||||
linuxPackages_nanonote_jz_2_6_34 = recurseIntoAttrs (linuxPackagesFor linux_nanonote_jz_2_6_34 pkgs.linuxPackages_nanonote_jz_2_6_34);
|
||||
linuxPackages_nanonote_jz_2_6_35 = recurseIntoAttrs (linuxPackagesFor linux_nanonote_jz_2_6_35 pkgs.linuxPackages_nanonote_jz_2_6_35);
|
||||
linuxPackages_nanonote_jz_2_6_36 = recurseIntoAttrs (linuxPackagesFor linux_nanonote_jz_2_6_36 pkgs.linuxPackages_nanonote_jz_2_6_36);
|
||||
|
|
Loading…
Reference in a new issue