Enable setting the headersVersion so the default kernel can be updated without rebuilding stdenv

svn path=/nixpkgs/branches/stdenv-updates/; revision=29548
This commit is contained in:
Shea Levy 2011-09-30 15:39:47 +00:00
parent c10d43d3bd
commit 1a7554562f
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@
assert cross == null -> stdenv.isLinux;
let
version = kernel.version;
version = kernel.headersVersion;
kernelHeadersBaseConfig = if (cross == null) then
stdenv.platform.kernelHeadersBaseConfig
else

View file

@ -9,6 +9,9 @@
, # The kernel version.
version
, # The kernel headers version.
headersVersion ? version
, # The version number used for the module directory
modDirVersion ? version
@ -72,7 +75,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
passthru = {
inherit version modDirVersion headersSrc;
inherit version modDirVersion headersSrc headersVersion;
# 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;
};