2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, linuxPackages }:
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "rtl8723bs-firmware-${linuxPackages.rtl8723bs.version}";
|
|
|
|
inherit (linuxPackages.rtl8723bs) src;
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/firmware/rtlwifi"
|
|
|
|
cp rtl8723bs_nic.bin "$out/lib/firmware/rtlwifi"
|
|
|
|
cp rtl8723bs_wowlan.bin "$out/lib/firmware/rtlwifi"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Firmware for RealTek 8723bs";
|
|
|
|
homepage = "https://github.com/hadess/rtl8723bs";
|
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|