evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / rt / rtl8192su-firmware / package.nix
blob49a3b9c13ac4fea62d827b93ebd3098c848cf29b
1 { lib, stdenvNoCC, fetchFromGitHub }:
2 stdenvNoCC.mkDerivation {
3   pname = "rtl8192su";
4   version = "unstable-2016-10-05";
6   src = fetchFromGitHub {
7     owner = "chunkeey";
8     repo = "rtl8192su";
9     rev = "c00112c9a14133290fe30bd3b44e45196994cb1c";
10     sha256 = "0j3c35paapq1icmxq0mg7pm2xa2m69q7bkfmwgq99d682yr2cb5l";
11   };
13   dontBuild = true;
15   installPhase = ''
16     for i in rtl8192sfw.bin \
17              rtl8192sufw-ap.bin \
18              rtl8192sufw-apple.bin \
19              rtl8192sufw-windows.bin \
20              rtl8712u-linux-firmware-bad.bin \
21              rtl8712u-most-recent-v2.6.6-bad.bin \
22              rtl8712u-most-recent-v2.6.6-bad.bin \
23              rtl8712u-oldest-but-good.bin;
24     do
25       install -D -pm644 firmwares/$i $out/lib/firmware/rtlwifi/$i
26     done
27   '';
29   meta = with lib; {
30     description = "Firmware for Realtek RTL8188SU/RTL8191SU/RTL8192SU";
31     homepage = "https://github.com/chunkeey/rtl8192su";
32     license = licenses.unfreeRedistributableFirmware;
33     maintainers = with maintainers; [ mic92 ];
34     platforms = with platforms; linux;
35   };