summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/rtw89-firmware/default.nix
blob: 8e71770df9ce3334bfc2058bfacf6fbd073588d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenvNoCC, lib, linuxPackages }:

stdenvNoCC.mkDerivation {
  pname = "rtw89-firmware";
  inherit (linuxPackages.rtw89) version src;

  dontBuild = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/lib/firmware/rtw89
    cp *.bin $out/lib/firmware/rtw89

    runHook postInstall
  '';

  meta = with lib; {
    description = "Driver for Realtek 8852AE, an 802.11ax device";
    homepage = "https://github.com/lwfinger/rtw89";
    license = licenses.unfreeRedistributableFirmware;
    maintainers = with maintainers; [ tvorog ];
    platforms = platforms.linux;
  };
}