2021-10-08 15:17:17 +00:00
|
|
|
{ lib
|
2022-12-28 21:21:41 +00:00
|
|
|
, fetchurl
|
2021-10-08 15:17:17 +00:00
|
|
|
, stdenvNoCC
|
|
|
|
}:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-05-15 21:57:56 +00:00
|
|
|
pname = "sof-firmware";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "2.2.4";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-v${version}.tar.gz";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-zoquuhA6pWqCZiVSsPM/M6hZqhAI2L+8LCLwzPyMazo=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2021-10-08 15:17:17 +00:00
|
|
|
runHook preInstall
|
2022-12-28 21:21:41 +00:00
|
|
|
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
|
2021-10-08 15:17:17 +00:00
|
|
|
runHook postInstall
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/thesofproject/sof-bin/releases/tag/v${version}";
|
2020-05-15 21:57:56 +00:00
|
|
|
description = "Sound Open Firmware";
|
|
|
|
homepage = "https://www.sofproject.org/";
|
|
|
|
license = with licenses; [ bsd3 isc ];
|
2021-05-03 20:48:10 +00:00
|
|
|
maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = with platforms; linux;
|
2022-12-28 21:21:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|