mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
Added homepage where missing, where the sources are pulled from: - https://github.com - https://git.sr.ht - https://gitlab.com - https://invent.kde.org - https://codeberg.org - https://gitlab.gnome.org - https://gitlab.freedesktop.org - https://git.FreeBSD.org - https://salsa.debian.org - https://git.tvdr.de - https://git.suckless.org
32 lines
771 B
Nix
32 lines
771 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "rt5677-firmware";
|
|
version = "4.16-10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raphael";
|
|
repo = "linux-samus";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-fghU20fqKDhmisXI42t23omWYCRs0HAyzCp4c2GMZc0";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib/firmware
|
|
cp ./firmware/rt5677_elf_vad $out/lib/firmware
|
|
'';
|
|
|
|
meta = {
|
|
description = "Firmware for Realtek rt5677 device";
|
|
homepage = "https://github.com/raphael/linux-samus";
|
|
license = lib.licenses.unfreeRedistributableFirmware;
|
|
maintainers = with lib.maintainers; [ zohl ];
|
|
platforms = lib.platforms.linux;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryFirmware ];
|
|
};
|
|
})
|