use linuxArch instead of case statement

This commit is contained in:
Daniel Barlow 2023-11-25 18:16:20 +00:00
parent 27ce61ae4e
commit a8f98ccfe7

View file

@ -14,11 +14,7 @@
, lib
}:
let
arch = if stdenv.isMips
then "mips"
else if stdenv.isAarch64
then "arm64"
else throw "unknown arch";
arch = stdenv.hostPlatform.linuxArch;
openwrtSrc = fetchFromGitHub {
name = "openwrt-source";
repo = "openwrt";