blob: f38306e7fd4a8a7df6a125434dbff9a28a551365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ 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 = "1nkj8h2fwj83wsswi6p2jf3nxba0r70inanvjcf77cqyx6nvp2pv";
# };
# 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 ${bin} $out/lib/firmware/brcm/brcmfmac43340-sdio.bin
cp ${./brcm.txt} $out/lib/firmware/brcm/brcmfmac43340-sdio.txt
'';
}
|