From c9e4c1b0da6598a6800c419e809e64d69d9b8cf5 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 7 Feb 2024 16:20:34 +0000 Subject: [PATCH] kernel-modules: use linuxArch instead of case expression --- pkgs/kernel-modules/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/kernel-modules/default.nix b/pkgs/kernel-modules/default.nix index 67ea363..ed95ae1 100644 --- a/pkgs/kernel-modules/default.nix +++ b/pkgs/kernel-modules/default.nix @@ -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";