git.iko.soy/typeable/nixpkgs
on master help sign in
linux-headers 4.4: Remove arch fallback code

@dezgeg was right: The `platform` field of a linux platorm is already manadatory---if not specified it is inferred, and all such inferences include a `kernelArch` field. Therefore linux packages can indeed rely on it being defined.

commitc13cf47e7971cd94553d55caca6a004dc72c98e1 authorJohn Ericson <John.Ericson@Obsidian.Systems> dateThu 14 Sep 2017, 19:24 (9 years ago) parentbaaed4c
1 file changed+1−6
pkgs/os-specific/linux/kernel-headers/4.4.nix+1−6
pkgs/os-specific/linux/kernel-headers/4.4.nix+1−6
@@ -20,12 +20,7 @@ stdenvNoCC.mkDerivation {
2020
2121 targetConfig = if hostPlatform != buildPlatform then hostPlatform.config else null;
2222
23− platform = hostPlatform.platform.kernelArch or (
24− if hostPlatform.system == "i686-linux" then "i386" else
25− if hostPlatform.system == "x86_64-linux" then "x86_64" else
26− if hostPlatform.system == "powerpc-linux" then "powerpc" else
27− if hostPlatform.isArm then "arm" else
28− abort "don't know what the kernel include directory is called for this platform");
23+ platform = hostPlatform.platform.kernelArch;
2924
3025 # It may look odd that we use `stdenvNoCC`, and yet explicit depend on a cc.
3126 # We do this so we have a build->build, not build->host, C compiler.