2022-12-05 03:01:37 +00:00
|
|
|
{ stdenv, lib, pkgs, firmwareLinuxNonfree, ... }:
|
|
|
|
|
2021-02-06 11:55:27 +00:00
|
|
|
let
|
2021-03-05 22:23:05 +00:00
|
|
|
repos = (pkgs.callPackage ../../../repos.nix {});
|
2021-08-25 00:06:29 +00:00
|
|
|
killernetworking_firmware = repos.surface-go-ath10k-firmware_backup + "/K1535_Debian";
|
2022-12-05 03:01:37 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2021-02-06 11:55:27 +00:00
|
|
|
pname = "microsoft-surface-go-firmware-linux-nonfree";
|
2022-02-20 17:23:14 +00:00
|
|
|
inherit (firmwareLinuxNonfree) version;
|
|
|
|
src = firmwareLinuxNonfree;
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2021-02-06 11:55:27 +00:00
|
|
|
|
2022-02-20 17:23:14 +00:00
|
|
|
installPhase = ''
|
2021-02-07 00:31:26 +00:00
|
|
|
# Install the Surface Go Wifi firmware:
|
2022-02-20 17:23:14 +00: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-07 02:49:02 +00:00
|
|
|
|
2022-02-20 17:23:14 +00:00
|
|
|
mkdir $out; cp -r ./. $out
|
|
|
|
'';
|
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;
|
|
|
|
};
|
2022-02-20 17:23:14 +00:00
|
|
|
}
|