diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-22 10:49:10 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-22 10:49:10 +0100 |
commit | 0af8015d7fe3f7f196e998d9285347259eb67639 (patch) | |
tree | 25b440809d9b65326cb054c50b6472d0afc5caa1 /machines/asus | |
parent | 554858f8e55c88a1a27fe2aaf7c9232be85f2d11 (diff) | |
download | dots-0af8015d7fe3f7f196e998d9285347259eb67639.tar.gz dots-0af8015d7fe3f7f196e998d9285347259eb67639.zip |
Use other brcm
Diffstat (limited to 'machines/asus')
-rw-r--r-- | machines/asus/brcm.nix | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/machines/asus/brcm.nix b/machines/asus/brcm.nix index 397034f..9ef9188 100644 --- a/machines/asus/brcm.nix +++ b/machines/asus/brcm.nix @@ -1,21 +1,37 @@ { stdenv, fetchurl }: -stdenv.mkDerivation { - name = "brcmfmac43340"; +# stdenv.mkDerivation { +# name = "brcmfmac43340"; - src = fetchurl { - url = "https://android.googlesource.com/platform/hardware/broadcom/wlan/+archive/master/bcmdhd/firmware/bcm43341.tar.gz"; - sha256 = "0cd25rrmc0b74pxhhgv1jgjwfk6214pz1s7lffplsc4s354h1wd9"; - }; +# src = fetchurl { +# url = "https://android.googlesource.com/platform/hardware/broadcom/wlan/+archive/master/bcmdhd/firmware/bcm43341.tar.gz"; +# sha256 = "0cd25rrmc0b74pxhhgv1jgjwfk6214pz1s7lffplsc4s354h1wd9"; +# }; - sourceRoot = "."; +# sourceRoot = "."; + +# 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 +# cp ${./brcm.txt} $out/lib/firmware/brcm/brcmfmac43340-sdio.txt +# cp ${./brcm.txt} $out/lib/firmware/brcm/brcmfmac43341-sdio.txt +# ''; +# } +let + bin = fetchurl { + url = "https://github.com/OpenELEC/wlan-firmware/blob/master/firmware/brcm/brcmfmac43340-sdio.bin"; + sha256 = "1k1xjbkls6hjdwlwcgrvjcvv0vhgdirqvxlyzpssq205qygqskqf"; + }; +in +stdenv.mkDerivation { + name = "brcmfmac43340"; + unpackPhase = "true"; 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 + cp ${bin} $out/lib/firmware/brcm/brcmfmac43340-sdio.bin cp ${./brcm.txt} $out/lib/firmware/brcm/brcmfmac43340-sdio.txt - cp ${./brcm.txt} $out/lib/firmware/brcm/brcmfmac43341-sdio.txt ''; } |