nixpkgs/pkgs/os-specific/linux/kernel/default.nix
Michael Raskin 96ddccf6b2 Some fixes to build elfutils and ltrace, added x11vnc, forward-ported kernel 2.6.23.16 as default.
svn path=/nixpkgs/branches/stdenv-updates/; revision=10718
2008-02-18 07:23:05 +00:00

33 lines
947 B
Nix

args:
let
getValue = aSet: aName: default:
(if (builtins.hasAttr aName aSet) then (builtins.getAttr aName aSet) else default);
in
let
newArgs = (args //
{
userModeLinux = getValue args "userModeLinux" false;
localVersion = getValue args "localVersion" "";
config = getValue args "configFile" null;
extraPatches = getValue args "extraPatches" [];
extraConfig = getValue args "extraConfig" [];
});
in
args.stdenv.lib.listOfListsToAttrs [
[ "recurseForDerivations" true ]
[ "2.6.20" (import ./2.6.20.nix newArgs) ]
[ "2.6.21" (import ./2.6.21.nix newArgs) ]
[ "2.6.21-ck" (import ./2.6.21-ck.nix newArgs) ]
[ "2.6.22" (import ./2.6.22.nix newArgs) ]
[ "2.6.22-ck" (import ./2.6.22-ck.nix newArgs) ]
[ "2.6.23" (import ./2.6.23.nix newArgs) ]
[ "2.6.23.1" (import ./2.6.23.1.nix newArgs) ]
[ "2.6.23.16" (import ./2.6.23.16.nix newArgs) ]
[ "default" (import ./2.6.23.16.nix newArgs) ]
]