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
writeConfig = import ./write-kconfig.nix { inherit lib writeText; };
kconfigFile = writeConfig "kconfig" config;
arch = if stdenv.isMips
then "mips"
else if stdenv.isAarch64
then "arm64"
else throw "unknown arch";
arch = stdenv.hostPlatform.linuxArch;
inherit lib; in
stdenv.mkDerivation rec {
name = "kernel";