mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
839d828b9c
None of these packages use a compiler, except for alsa-firmware, which has the appropriate compiler in depsBuildBuild already. Tested by building a NixOS system with hardware.enableAllFirmware = true.
25 lines
617 B
Nix
25 lines
617 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "rt5677-firmware";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "raphael";
|
|
repo = "linux-samus";
|
|
rev = "995de6c2093797905fbcd79f1a3625dd3f50be37";
|
|
sha256 = "sha256-PjPFpz4qJLC+vTomV31dA3AKGjfYjKB2ZYfUpnj61Cg=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|