2021-02-07 02:49:46 +00:00
|
|
|
{stdenv, lib, pkgs, firmwareLinuxNonfree, ...}:
|
2021-02-06 11:55:27 +00:00
|
|
|
let
|
|
|
|
repos = (pkgs.callPackage ../repos.nix {});
|
2021-02-22 23:40:08 +00:00
|
|
|
killernetworking_firmware = ./K1535_Debian;
|
|
|
|
# killernetworking_firmware = repos.ath10k-firmware;
|
2021-02-06 11:55:27 +00:00
|
|
|
in
|
|
|
|
firmwareLinuxNonfree.overrideAttrs (old: rec {
|
|
|
|
pname = "microsoft-surface-go-firmware-linux-nonfree";
|
|
|
|
srcs = [
|
|
|
|
firmwareLinuxNonfree.src
|
2021-02-07 00:31:26 +00:00
|
|
|
ath10k
|
2021-02-06 11:55:27 +00:00
|
|
|
];
|
|
|
|
sourceRoot = firmwareLinuxNonfree.src;
|
|
|
|
|
|
|
|
dontMakeSourcesWritable = true;
|
|
|
|
postInstall = ''
|
2021-02-07 00:31:26 +00:00
|
|
|
# Delete the non-working firmware:
|
|
|
|
rm -v $out/lib/firmware/ath10k/QCA6174/{hw2.1,hw3.0}/board.bin
|
|
|
|
rm -v $out/lib/firmware/ath10k/QCA6174/{hw2.1,hw3.0}/board-2.bin
|
2021-02-06 11:55:27 +00:00
|
|
|
|
2021-02-07 00:31:26 +00:00
|
|
|
# Install the Surface Go Wifi firmware:
|
2021-02-22 23:40:08 +00:00
|
|
|
cp ${killernetworking_firmware}/board.bin $out/lib/firmware/ath10k/QCA6174/hw2.1/
|
|
|
|
cp ${killernetworking_firmware}/board.bin $out/lib/firmware/ath10k/QCA6174/hw3.0/
|
2021-02-06 11:55:27 +00:00
|
|
|
'';
|
2021-02-07 02:49:02 +00:00
|
|
|
|
|
|
|
outputHash = "1nc56qii96dfvxnv3ad3lxz2rzyqcbldk0h9rbm3l2pgamkvj8dw";
|
2021-02-07 02:49:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standard binary firmware collection, adjusted with the Surface Go WiFi firmware";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
priority = 5;
|
|
|
|
};
|
2021-02-06 11:55:27 +00:00
|
|
|
})
|