kernel-modules: use linuxArch instead of case expression

mainline-omnia-wip
Daniel Barlow 2024-02-07 16:20:34 +00:00
parent 891d6e5f20
commit c9e4c1b0da
1 changed files with 1 additions and 5 deletions

View File

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