fix rasperrypifw cross build
This commit is contained in:
parent
6da4ab627f
commit
a052e52a27
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, dpkg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "raspberrypi-wireless-firmware-${version}";
|
name = "raspberrypi-wireless-firmware-${version}";
|
||||||
@ -20,11 +20,12 @@ stdenv.mkDerivation rec {
|
|||||||
# Firmware blobs do not need fixing and should not be modified
|
# Firmware blobs do not need fixing and should not be modified
|
||||||
dontFixup = true;
|
dontFixup = true;
|
||||||
|
|
||||||
|
|
||||||
# Unpack the debian package
|
# Unpack the debian package
|
||||||
|
nativeBuildInputs = [ dpkg ];
|
||||||
unpackCmd = ''
|
unpackCmd = ''
|
||||||
if ! [[ "$curSrc" =~ \.deb$ ]]; then return 1; fi
|
if ! [[ "$curSrc" =~ \.deb$ ]]; then return 1; fi
|
||||||
ar -xf "$curSrc"
|
dpkg -x "$curSrc" .
|
||||||
tar -xf data.tar.xz
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -39,6 +40,10 @@ stdenv.mkDerivation rec {
|
|||||||
cp broadcom/*.hcd "$out/lib/firmware/brcm"
|
cp broadcom/*.hcd "$out/lib/firmware/brcm"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
outputHashMode = "recursive";
|
||||||
|
outputHashAlgo = "sha256";
|
||||||
|
outputHash = "1gwzasl5w5nc0awqv3w2081ns63wd1yds0xh0dg95dc6brnqhhf8";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3 and Zero W";
|
description = "Firmware for builtin Wifi/Bluetooth devices in the Raspberry Pi 3 and Zero W";
|
||||||
homepage = https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/;
|
homepage = https://archive.raspberrypi.org/debian/pool/main/f/firmware-nonfree/;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user