liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c9e4c1b0da6598a6800c419e809e64d69d9b8cf5
parent 891d6e5f206b5d436a2ec5d6de71f7630a37e243
Author: Daniel Barlow <dan@telent.net>
Date:   Wed,  7 Feb 2024 16:20:34 +0000

kernel-modules: use linuxArch instead of case expression

Diffstat:
Mpkgs/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 @@ -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";