2022-08-12 15:51:22 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2021-01-15 14:45:37 +00:00
|
|
|
with lib;
|
2022-08-12 15:51:22 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2021-08-27 14:47:49 +00:00
|
|
|
pname = "rtl8192su";
|
|
|
|
version = "unstable-2016-10-05";
|
2017-03-31 08:41:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chunkeey";
|
|
|
|
repo = "rtl8192su";
|
|
|
|
rev = "c00112c9a14133290fe30bd3b44e45196994cb1c";
|
|
|
|
sha256 = "0j3c35paapq1icmxq0mg7pm2xa2m69q7bkfmwgq99d682yr2cb5l";
|
|
|
|
};
|
|
|
|
|
2021-08-02 18:57:37 +00:00
|
|
|
dontBuild = true;
|
2017-03-31 08:41:34 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
for i in rtl8192sfw.bin \
|
|
|
|
rtl8192sufw-ap.bin \
|
|
|
|
rtl8192sufw-apple.bin \
|
|
|
|
rtl8192sufw-windows.bin \
|
|
|
|
rtl8712u-linux-firmware-bad.bin \
|
|
|
|
rtl8712u-most-recent-v2.6.6-bad.bin \
|
|
|
|
rtl8712u-most-recent-v2.6.6-bad.bin \
|
|
|
|
rtl8712u-oldest-but-good.bin;
|
|
|
|
do
|
|
|
|
install -D -pm644 firmwares/$i $out/lib/firmware/rtlwifi/$i
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-31 08:41:34 +00:00
|
|
|
description = "Firmware for Realtek RTL8188SU/RTL8191SU/RTL8192SU";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/chunkeey/rtl8192su";
|
2017-03-31 08:41:34 +00:00
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|