kernel-headers: Don't use stdenv.cross

This commit is contained in:
hsloan 2017-06-28 16:30:50 -04:00 committed by John Ericson
parent a7f81284a5
commit c5b4b6c911

View File

@ -1,4 +1,6 @@
{ stdenv, kernel, perl }:
{ stdenv, kernel, perl
, hostPlatform
}:
let
baseBuildFlags = [ "INSTALL_HDR_PATH=$(out)" "headers_install" ];
@ -13,7 +15,7 @@ in stdenv.mkDerivation {
crossAttrs = {
inherit (kernel.crossDrv) src patches;
buildFlags = [ "ARCH=${stdenv.cross.platform.kernelArch}" ] ++ baseBuildFlags;
buildFlags = [ "ARCH=${hostPlatform.platform.kernelArch}" ] ++ baseBuildFlags;
};
installPhase = ''