forked from mirrors/nixpkgs
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:
parent
dcef7ad3bf
commit
c10d43d3bd
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue