diff --git a/pkgs/mac80211/default.nix b/pkgs/mac80211/default.nix index 59609792..e03d0bc2 100644 --- a/pkgs/mac80211/default.nix +++ b/pkgs/mac80211/default.nix @@ -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";