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
|
||||
}:
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue