mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
rtl8723bs-firmware: init, split off from rtl8723bs
This commit is contained in:
parent
2f6cd0ce33
commit
4c415e59a4
@ -22,7 +22,11 @@ with lib;
|
||||
###### implementation
|
||||
|
||||
config = mkIf config.hardware.enableAllFirmware {
|
||||
hardware.firmware = [ pkgs.firmwareLinuxNonfree pkgs.intel2200BGFirmware ];
|
||||
hardware.firmware = with pkgs; [
|
||||
firmwareLinuxNonfree
|
||||
intel2200BGFirmware
|
||||
rtl8723bs-firmware
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,21 @@
|
||||
{ stdenv, linuxPackages }:
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation {
|
||||
name = "rtl8723bs-firmware-${linuxPackages.rtl8723bs.rev}";
|
||||
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"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Firmware for RealTek 8723bs";
|
||||
homepage = https://github.com/hadess/rtl8723bs;
|
||||
license = licenses.unfreeRedistributableFirmware;
|
||||
maintainers = with maintainers; [ elitak ];
|
||||
};
|
||||
}
|
@ -25,10 +25,6 @@ stdenv.mkDerivation rec {
|
||||
mkdir -p $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/wireless
|
||||
cp r8723bs.ko $out/lib/modules/${kernel.modDirVersion}/kernel/drivers/net/wireless
|
||||
|
||||
mkdir -p "$out/lib/firmware/rtlwifi"
|
||||
cp rtl8723bs_nic.bin "$out/lib/firmware/rtlwifi"
|
||||
cp rtl8723bs_wowlan.bin "$out/lib/firmware/rtlwifi"
|
||||
|
||||
nuke-refs $(find $out -name "*.ko")
|
||||
'';
|
||||
|
||||
|
@ -11015,6 +11015,8 @@ in
|
||||
|
||||
rt5677-firmware = callPackage ../os-specific/linux/firmware/rt5677 { };
|
||||
|
||||
rtl8723bs-firmware = callPackage ../os-specific/linux/firmware/rtl8723bs-firmware { };
|
||||
|
||||
s3ql = callPackage ../tools/backup/s3ql { };
|
||||
|
||||
sassc = callPackage ../development/tools/sassc { };
|
||||
|
Loading…
Reference in New Issue
Block a user