2011-10-25 11:27:41 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2011-10-25 01:35:53 +02:00
|
|
|
|
2011-10-25 19:06:38 +02:00
|
|
|
let
|
|
|
|
src1 = fetchurl {
|
|
|
|
url = "https://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=blob_plain;f=brcm/bcm43xx_hdr-0.fw;hb=15888a2eab052ac3d3f49334e4f6f05f347a516e";
|
|
|
|
sha256 = "d02549964d21dd90fc35806483b9fc871d93d7d38ae1a70a9ce006103c2a3de3";
|
|
|
|
name = "bcm43xx_hdr-0.fw";
|
|
|
|
};
|
|
|
|
|
|
|
|
src2 = fetchurl {
|
|
|
|
url = "https://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;a=blob_plain;f=brcm/bcm43xx-0.fw;hb=15888a2eab052ac3d3f49334e4f6f05f347a516e";
|
|
|
|
sha256 = "f90f685903127e4db431fe1efccefebf77272712bd4bfe46d1d1d5825ee52797";
|
|
|
|
name = "bcm43xx-0.fw";
|
|
|
|
};
|
|
|
|
in
|
2011-10-25 11:27:41 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-10-25 01:35:53 +02:00
|
|
|
name = "bcm43xx-firmware-610.811";
|
|
|
|
|
2011-10-25 19:06:38 +02:00
|
|
|
unpackPhase = "true";
|
2011-10-25 01:35:53 +02:00
|
|
|
|
|
|
|
buildPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/brcm
|
2011-10-25 19:06:38 +02:00
|
|
|
for i in ${src1} ${src2}; do
|
|
|
|
cp -v $i $out/brcm/$(echo $i | sed -r -e 's|.*/[a-z0-9]+-||')
|
2011-10-25 01:35:53 +02:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Firmware for the Broadcom 43xx 802.11 wireless cards";
|
|
|
|
homepage = http://linuxwireless.org/;
|
|
|
|
};
|
|
|
|
}
|