6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
34 lines
1 KiB
Nix
34 lines
1 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, stdenvNoCC
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "sof-firmware";
|
|
version = "2.2.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-v${version}.tar.gz";
|
|
sha256 = "sha256-zoquuhA6pWqCZiVSsPM/M6hZqhAI2L+8LCLwzPyMazo=";
|
|
};
|
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib/firmware/intel
|
|
cp -av sof-v${version} $out/lib/firmware/intel/sof
|
|
cp -av sof-tplg-v${version} $out/lib/firmware/intel/sof-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 ];
|
|
};
|
|
}
|