diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-22 10:51:21 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2021-01-22 10:51:21 +0100 |
commit | 1352a9923237e8ddef5d9ed53461427de1d272c9 (patch) | |
tree | 703dd8d5ab55b93f1c8cd6af01c08243352d92d7 /machines/asus/brcm.nix | |
parent | 256e99c6e0e2e5f5bb87902e4180933f6d49a54a (diff) | |
parent | 0af8015d7fe3f7f196e998d9285347259eb67639 (diff) | |
download | dots-1352a9923237e8ddef5d9ed53461427de1d272c9.tar.gz dots-1352a9923237e8ddef5d9ed53461427de1d272c9.zip |
Merge branch 'master' of ssh://github.com/pniedzwiedzinski/dots
Diffstat (limited to 'machines/asus/brcm.nix')
-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 402f741..f38306e 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 = "1nkj8h2fwj83wsswi6p2jf3nxba0r70inanvjcf77cqyx6nvp2pv"; - }; +# src = fetchurl { +# url = "https://android.googlesource.com/platform/hardware/broadcom/wlan/+archive/master/bcmdhd/firmware/bcm43341.tar.gz"; +# sha256 = "1nkj8h2fwj83wsswi6p2jf3nxba0r70inanvjcf77cqyx6nvp2pv"; +# }; - 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 ''; } |