Packages changes, needed after recent kernel expression restructurisation

svn path=/nixpkgs/trunk/; revision=11883
This commit is contained in:
Michael Raskin
2008-05-22 19:29:23 +00:00
parent 5f4c7bcf53
commit e0caa641c0
2 changed files with 16 additions and 15 deletions

View File

@@ -29,6 +29,8 @@
, # A list of additional statements to be appended to the
# configuration file.
extraConfig ? []
, features ? []
}:
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
@@ -42,6 +44,12 @@ in
stdenv.mkDerivation {
name = if userModeLinux then "user-mode-linux-${version}" else "linux-${version}";
builder = ./builder-custom.sh;
passthru = {
inherit version;
# Combine the `features' attribute sets of all the kernel patches.
features = lib.fold (x: y: (if x ? features then x.features else {}) // y) features kernelPatches;
};
inherit src;
preConfigure = preConfigure;