mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-27 20:51:01 +01:00
config txt rendering
This commit is contained in:
parent
5756b051fa
commit
9ebf2ff9c2
4 changed files with 113 additions and 7 deletions
|
|
@ -1,14 +1,15 @@
|
|||
{ bluez-firmware-src, firmware-nonfree-src }:
|
||||
{ bluez-firmware, firmware-nonfree }:
|
||||
{ lib, stdenvNoCC, fetchFromGitHub }:
|
||||
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "raspberrypi-wireless-firmware";
|
||||
version = "2023-01-19";
|
||||
|
||||
srcs = [ bluez-firmware-src firmware-nonfree-src ];
|
||||
srcs = [ ];
|
||||
|
||||
sourceRoot = ".";
|
||||
|
||||
dontUnpack = true;
|
||||
dontBuild = true;
|
||||
# Firmware blobs do not need fixing and should not be modified
|
||||
dontFixup = true;
|
||||
|
|
@ -18,14 +19,13 @@ stdenvNoCC.mkDerivation {
|
|||
mkdir -p "$out/lib/firmware/brcm"
|
||||
|
||||
# Wifi firmware
|
||||
cp -rv "$NIX_BUILD_TOP/firmware-nonfree/debian/config/brcm80211/." "$out/lib/firmware/"
|
||||
cp -rv "${firmware-nonfree}/debian/config/brcm80211/." "$out/lib/firmware/"
|
||||
|
||||
# Bluetooth firmware
|
||||
cp -rv "$NIX_BUILD_TOP/bluez-firmware/broadcom/." "$out/lib/firmware/brcm"
|
||||
cp -rv "${bluez-firmware}/broadcom/." "$out/lib/firmware/brcm"
|
||||
|
||||
# CM4 symlink must be added since it's missing from upstream
|
||||
pushd $out/lib/firmware/brcm &>/dev/null
|
||||
ln -s "./brcmfmac43455-sdio.txt" "$out/lib/firmware/brcm/brcmfmac43455-sdio.raspberrypi,4-compute-module.txt"
|
||||
|
||||
# There are two options for the brcmfmac43455 binary: minimal or
|
||||
# standard. For more info see the readme at:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue