use linuxArch instead of case statement
This commit is contained in:
parent
27ce61ae4e
commit
a8f98ccfe7
1 changed files with 1 additions and 5 deletions
|
@ -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";
|
||||||
|
|
Loading…
Reference in a new issue