linuxHeaders: Remove cruft
This commit is contained in:
parent
fe078d796d
commit
55a642f5cf
@ -12007,17 +12007,7 @@ with pkgs;
|
|||||||
linuxHeaders_4_4 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
|
linuxHeaders_4_4 = callPackage ../os-specific/linux/kernel-headers/4.4.nix {
|
||||||
cross = if targetPlatform != hostPlatform then targetPlatform else null;
|
cross = if targetPlatform != hostPlatform then targetPlatform else null;
|
||||||
};
|
};
|
||||||
|
linuxHeaders = linuxHeaders_4_4;
|
||||||
# We can choose:
|
|
||||||
linuxHeaders =
|
|
||||||
if targetPlatform != hostPlatform
|
|
||||||
then
|
|
||||||
{ # switch
|
|
||||||
"4.4" = linuxHeaders_4_4;
|
|
||||||
}.${targetPlatform.platform.kernelMajor}
|
|
||||||
or (throw "Unknown linux kernel version")
|
|
||||||
else
|
|
||||||
linuxHeaders_4_4;
|
|
||||||
|
|
||||||
kernelPatches = callPackage ../os-specific/linux/kernel/patches.nix { };
|
kernelPatches = callPackage ../os-specific/linux/kernel/patches.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user