From a8f98ccfe734546802a1e2c224fa22664aa256b6 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 25 Nov 2023 18:16:20 +0000 Subject: [PATCH] use linuxArch instead of case statement --- pkgs/mac80211/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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";