2022-08-21 13:32:41 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
name = "rt5677-firmware";
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raphael";
|
|
|
|
repo = "linux-samus";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "995de6c2093797905fbcd79f1a3625dd3f50be37";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-PjPFpz4qJLC+vTomV31dA3AKGjfYjKB2ZYfUpnj61Cg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/firmware
|
|
|
|
cp ./firmware/rt5677_elf_vad $out/lib/firmware
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Firmware for Realtek rt5677 device";
|
|
|
|
license = licenses.unfreeRedistributableFirmware;
|
|
|
|
maintainers = [ maintainers.zohl ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|