summary refs log tree commit diff
path: root/pkgs/os-specific/linux/firmware/rt5677/default.nix
blob: f5d84179fd29dbc71017b1c9fb6da0095aa587ad (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
{ lib, stdenv, fetchgit }:

stdenv.mkDerivation {
  name = "rt5677-firmware";

  src = fetchgit {
    url = "https://github.com/raphael/linux-samus";
    rev = "995de6c2093797905fbcd79f1a3625dd3f50be37";
    sha256 = "0a6lz9wadm47cmva136q6wd0lw03bmymf9ispnzb091a7skwacry";
  };


  installPhase = ''
    mkdir -p $out/lib/firmware
    cp ./firmware/rt5677_elf_vad $out/lib/firmware
  '';

  meta = with lib; {
    description = "Firmware for Realtek rt5677 device";
    license = licenses.unfreeRedistributableFirmware;
    maintainers = [ maintainers.zohl ];
    platforms = platforms.linux;
  };
}