rtl8723bs-firmware: init, split off from rtl8723bs

This commit is contained in:
Eric Litak 2016-04-22 07:54:11 -07:00
parent 2f6cd0ce33
commit 4c415e59a4
4 changed files with 28 additions and 5 deletions

View File

@ -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
];
};
}

View File

@ -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 ];
};
}

View File

@ -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")
'';

View File

@ -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 { };