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

svn path=/nixpkgs/branches/stdenv-updates/; revision=29547
This commit is contained in:
Shea Levy 2011-09-30 15:37:35 +00:00
parent dcef7ad3bf
commit c10d43d3bd
2 changed files with 5 additions and 2 deletions

View file

@ -13,7 +13,7 @@ in
stdenv.mkDerivation {
name = "linux-headers-${version}";
src = kernel.src;
src = kernel.headersSrc;
targetConfig = if (cross != null) then cross.config else null;

View file

@ -3,6 +3,9 @@
, # The kernel source tarball.
src
, # The kernel headers source tarball.
headersSrc ? src
, # The kernel version.
version
@ -69,7 +72,7 @@ stdenv.mkDerivation {
enableParallelBuilding = true;
passthru = {
inherit version modDirVersion;
inherit version modDirVersion headersSrc;
# 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;
};