-
Notifications
You must be signed in to change notification settings - Fork 0
/
qca9377_firmware.nix
39 lines (34 loc) · 964 Bytes
/
qca9377_firmware.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
lib,
stdenv,
fetchurl,
}:
# <https://gist.github.com/osmano807/8b8e9b37043007c68c4cbfb69ee3e562>
# Fix for broken ath10k driver.
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 = {
description = "Binary firmware for QCA9377 chipset";
homepage = "https://github.com/kvalo/ath10k-firmware";
license = lib.licenses.unfreeRedistributableFirmware;
platforms = lib.platforms.linux;
# priority = 6; # give precedence to kernel firmware
};
passthru = {
inherit version;
};
}