nixpkgs/pkgs/by-name/rt/rtl8192su-firmware/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

37 lines
1.1 KiB
Nix

{ lib, stdenvNoCC, fetchFromGitHub }:
stdenvNoCC.mkDerivation {
pname = "rtl8192su";
version = "unstable-2016-10-05";
src = fetchFromGitHub {
owner = "chunkeey";
repo = "rtl8192su";
rev = "c00112c9a14133290fe30bd3b44e45196994cb1c";
sha256 = "0j3c35paapq1icmxq0mg7pm2xa2m69q7bkfmwgq99d682yr2cb5l";
};
dontBuild = true;
installPhase = ''
for i in rtl8192sfw.bin \
rtl8192sufw-ap.bin \
rtl8192sufw-apple.bin \
rtl8192sufw-windows.bin \
rtl8712u-linux-firmware-bad.bin \
rtl8712u-most-recent-v2.6.6-bad.bin \
rtl8712u-most-recent-v2.6.6-bad.bin \
rtl8712u-oldest-but-good.bin;
do
install -D -pm644 firmwares/$i $out/lib/firmware/rtlwifi/$i
done
'';
meta = with lib; {
description = "Firmware for Realtek RTL8188SU/RTL8191SU/RTL8192SU";
homepage = "https://github.com/chunkeey/rtl8192su";
license = licenses.unfreeRedistributableFirmware;
maintainers = with maintainers; [ mic92 ];
platforms = with platforms; linux;
};
}