use hostPlatform.linuxArch in kernel derivation

This commit is contained in:
Daniel Barlow 2023-10-12 18:59:45 +01:00
parent 1a369ff3bf
commit c341eb46b6

View file

@ -11,12 +11,7 @@
let let
writeConfig = import ./write-kconfig.nix { inherit lib writeText; }; writeConfig = import ./write-kconfig.nix { inherit lib writeText; };
kconfigFile = writeConfig "kconfig" config; kconfigFile = writeConfig "kconfig" config;
arch = if stdenv.isMips arch = stdenv.hostPlatform.linuxArch;
then "mips"
else if stdenv.isAarch64
then "arm64"
else throw "unknown arch";
inherit lib; in inherit lib; in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "kernel"; name = "kernel";