2020-11-14 13:13:48 -05:00
|
|
|
# Based on instructions from kvalo at: http://lists.infradead.org/pipermail/ath11k/2020-November/000537.html
|
|
|
|
# The xps/13-9360/qca6174-firmware.nix was a useful reference for how to setup this module.
|
2020-12-02 09:50:24 -05:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2020-11-14 13:13:48 -05:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-12-13 09:09:57 -05:00
|
|
|
name = "${target}-wifi-firmware-${version}";
|
2020-11-14 13:13:48 -05:00
|
|
|
version = "${branch}-00042";
|
|
|
|
branch = "master";
|
|
|
|
target = "QCA6390";
|
2020-12-02 09:50:24 -05:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kvalo";
|
|
|
|
repo = "ath11k-firmware";
|
2020-11-14 13:13:48 -05:00
|
|
|
rev = "45a6c45a19799d3b06fc2287d5ba44e19ee0aa00";
|
2020-12-02 09:50:24 -05:00
|
|
|
sha256 = "1slfjzy2b9zi8744gyw8piz9gfvrh8s38wmyzzqj525iy76zn4qv";
|
2020-11-14 13:13:48 -05:00
|
|
|
};
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p $out/lib/firmware/ath11k/${target}/hw2.0/
|
|
|
|
cp $src/QCA6390/hw2.0/1.0.1/WLAN.HST.1.0.1-01740-QCAHSTSWPLZ_V2_TO_X86-1/*.bin $out/lib/firmware/ath11k/QCA6390/hw2.0/
|
|
|
|
cp $src/QCA6390/hw2.0/board-2.bin $out/lib/firmware/ath11k/QCA6390/hw2.0/
|
|
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = ''
|
|
|
|
Firmware for the QCA6390 wireless chip.
|
|
|
|
|
|
|
|
This derivation is based on the instructions provided by kvalo in:
|
|
|
|
http://lists.infradead.org/pipermail/ath11k/2020-November/000537.html
|
|
|
|
'';
|
2020-12-02 09:50:24 -05:00
|
|
|
homepage =
|
|
|
|
"https://github.com/kvalo/ath11k-firmware/tree/master/QCA6390/hw2.0";
|
2020-11-14 13:13:48 -05:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ mitchmindtree ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|