From c341eb46b66f55e0475ff3bb79c9853b8118cda9 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 12 Oct 2023 18:59:45 +0100 Subject: [PATCH] use hostPlatform.linuxArch in kernel derivation --- pkgs/kernel/default.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkgs/kernel/default.nix b/pkgs/kernel/default.nix index b6eb19f..3929d63 100644 --- a/pkgs/kernel/default.nix +++ b/pkgs/kernel/default.nix @@ -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";