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 , lib
}: }:
let let
arch = if stdenv.isMips arch = stdenv.hostPlatform.linuxArch;
then "mips"
else if stdenv.isAarch64
then "arm64"
else throw "unknown arch";
openwrtSrc = fetchFromGitHub { openwrtSrc = fetchFromGitHub {
name = "openwrt-source"; name = "openwrt-source";
repo = "openwrt"; repo = "openwrt";