@@ -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.