2022-12-04 22:01:37 -05:00
|
|
|
{ stdenv, lib, pkgs, firmwareLinuxNonfree, ... }:
|
|
|
|
|
2021-02-06 06:55:27 -05:00
|
|
|
let
|
2022-12-31 05:52:38 -05:00
|
|
|
repos = pkgs.callPackage ../../../repos.nix {};
|
2021-08-24 20:06:29 -04:00
|
|
|
killernetworking_firmware = repos.surface-go-ath10k-firmware_backup + "/K1535_Debian";
|
2022-12-04 22:01:37 -05:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2021-02-06 06:55:27 -05:00
|
|
|
pname = "microsoft-surface-go-firmware-linux-nonfree";
|
2022-02-20 12:23:14 -05:00
|
|
|
inherit (firmwareLinuxNonfree) version;
|
|
|
|
src = firmwareLinuxNonfree;
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2021-02-06 06:55:27 -05:00
|
|
|
|
2022-02-20 12:23:14 -05:00
|
|
|
installPhase = ''
|
2021-02-06 19:31:26 -05:00
|
|
|
# Install the Surface Go Wifi firmware:
|
2022-02-20 12:23:14 -05:00
|
|
|
cp ${killernetworking_firmware}/board.bin lib/firmware/ath10k/QCA6174/hw2.1/
|
|
|
|
cp ${killernetworking_firmware}/board.bin lib/firmware/ath10k/QCA6174/hw3.0/
|
2021-02-06 21:49:02 -05:00
|
|
|
|
2022-02-20 12:23:14 -05:00
|
|
|
mkdir $out; cp -r ./. $out
|
|
|
|
'';
|
2021-02-06 21:49:46 -05:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Standard binary firmware collection, adjusted with the Surface Go WiFi firmware";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
priority = 5;
|
|
|
|
};
|
2022-02-20 12:23:14 -05:00
|
|
|
}
|