mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
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:
parent
c10d43d3bd
commit
1a7554562f
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue