kernel-modules: use linuxArch instead of case expression

This commit is contained in:
Daniel Barlow 2024-02-07 16:20:34 +00:00
parent 891d6e5f20
commit c9e4c1b0da

View file

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