use linuxArch instead of case statement

pull/2/head
Daniel Barlow 2023-11-25 18:16:20 +00:00
parent 27ce61ae4e
commit a8f98ccfe7
1 changed files with 1 additions and 5 deletions

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";