mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, stdenvNoCC
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "sof-firmware";
|
|
version = "2024.06";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-${version}.tar.gz";
|
|
sha256 = "sha256-WByjKFu1aDeolUlT9inr3c5kQVK2c+zUu/rhUEMG19Y=";
|
|
};
|
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib/firmware/intel
|
|
cp -av sof $out/lib/firmware/intel/sof
|
|
cp -av sof-tplg $out/lib/firmware/intel/sof-tplg
|
|
cp -av sof-ace-tplg $out/lib/firmware/intel/sof-ace-tplg
|
|
cp -av sof-ipc4 $out/lib/firmware/intel/sof-ipc4
|
|
cp -av sof-ipc4-tplg $out/lib/firmware/intel/sof-ipc4-tplg
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/thesofproject/sof-bin/releases/tag/v${version}";
|
|
description = "Sound Open Firmware";
|
|
homepage = "https://www.sofproject.org/";
|
|
license = with licenses; [ bsd3 isc ];
|
|
maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
|
|
platforms = with platforms; linux;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|