Files
pkgs/pkgs/by-name/x1/x1e80100-linux-firmware/package.nix
T
nikkuss e7d58bb03a
checks / checks (push) Successful in 2m7s
add x1e ath12k firmware patch
2025-07-30 11:15:14 +04:00

12 lines
411 B
Nix

{ ath-tools, linux-firmware }:
linux-firmware.overrideAttrs (final: {
postInstall = ''
mkdir temp
cd temp || exit
${ath-tools.ath12k-tools}/bin/ath12k-bdencoder -e $out/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
patch -p1 < ${./firmware.patch}
${ath-tools.ath12k-tools}/bin/ath12k-bdencoder -c board-2.json
cp board-2.bin $out/lib/firmware/ath12k/WCN7850/hw2.0/board-2.bin
'';
})