Last active
December 28, 2018 23:56
-
-
Save osmano807/8b8e9b37043007c68c4cbfb69ee3e562 to your computer and use it in GitHub Desktop.
QCA9377 NixOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
let | |
qca9377_firmware = pkgs.callPackage ./qca9377_firmware.nix { }; | |
in | |
{ | |
hardware.firmware = with pkgs; [ | |
# firmwareLinuxNonfree | |
qca9377_firmware ]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl}: | |
stdenv.mkDerivation rec { | |
name = "qca9377_firmware-${version}"; | |
version = "5"; | |
src = ./firmware-5.bin; | |
sourceRoot = "."; | |
dontBuild = true; | |
unpackPhase = '' | |
cp "$src" . | |
''; | |
installPhase = '' | |
mkdir -p "$out/lib/firmware/ath10k/QCA9377/hw1.0" | |
cp "$src" "$out/lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin" | |
cp "$src" "$out/lib/firmware/ath10k/QCA9377/hw1.0/firmware-6.bin" | |
''; | |
# Firmware blobs do not need fixing and should not be modified | |
dontFixup = true; | |
meta = with stdenv.lib; { | |
description = "Binary firmware for QCA9377 chipset"; | |
homepage = https://github.com/kvalo/ath10k-firmware; | |
license = licenses.unfreeRedistributableFirmware; | |
platforms = platforms.linux; | |
# priority = 6; # give precedence to kernel firmware | |
}; | |
passthru = { inherit version; }; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment