cryptodev: 1.11 -> 1.12
[NixPkgs.git] / pkgs / os-specific / linux / firmware / rtl8192su-firmware / default.nix
blob34c2b683ea40e7175315d2a99fe6920d901022dc
1 { lib, stdenv, fetchFromGitHub }:
2 with lib;
3 stdenv.mkDerivation {
4   name = "rtl8192su-unstable-2016-10-05";
6   src = fetchFromGitHub {
7     owner = "chunkeey";
8     repo = "rtl8192su";
9     rev = "c00112c9a14133290fe30bd3b44e45196994cb1c";
10     sha256 = "0j3c35paapq1icmxq0mg7pm2xa2m69q7bkfmwgq99d682yr2cb5l";
11   };
13   phases = [ "unpackPhase" "installPhase" ];
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   };