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