Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created April 9, 2019 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/cd1ffe505c8d48e14b9e45bcad0edddd to your computer and use it in GitHub Desktop.
Save exarkun/cd1ffe505c8d48e14b9e45bcad0edddd to your computer and use it in GitHub Desktop.
# Get the non-free wireless firmware installed so the wireless chip
# actually *works*.
hardware.enableRedistributableFirmware = true;
hardware.firmware = [
(pkgs.stdenv.mkDerivation {
name = "broadcom-rpi3plus-extra";
src = pkgs.fetchurl
{ url = "https://raw.githubusercontent.com/RPi-Distro/firmware-nonfree/b518de4/brcm/brcmfmac43455-sdio.txt";
sha256 = "0r4bvwkm3fx60bbpwd83zbjganjnffiq1jkaj0h20bwdj9ysawg9";
};
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/lib/firmware/brcm
cp $src $out/lib/firmware/brcm/brcmfmac43455-sdio.txt
'';
})
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment