about summary refs log tree commit diff
path: root/machines/asus/brcm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/asus/brcm.nix')
-rw-r--r--machines/asus/brcm.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/asus/brcm.nix b/machines/asus/brcm.nix
new file mode 100644
index 0000000..d72648d
--- /dev/null
+++ b/machines/asus/brcm.nix
@@ -0,0 +1,17 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation {
+  name = "brcmfmac43340";
+
+  src = fetchurl {
+    url = "https://android.googlesource.com/platform/hardware/broadcom/wlan/+archive/master/bcmdhd/firmware/bcm43341.tar.gz";
+    sha256 = "1vm5yvxznkvsbdvnhm10dci33i0b9flzqalpbgvmzyd95vi7s4bm";
+  };
+
+  installPhase = ''
+    mkdir -p $out/lib/firmware/brcm
+
+    cp fw_bcm43341.bin $out/lib/firmware/brcm/brcmfmac43340-sdio.bin
+    cp fw_bcm43341.bin $out/lib/firmware/brcm/brcmfmac43341-sdio.bin
+  '';
+}