depot/third_party/nixpkgs/pkgs/os-specific/linux/firmware/sof-firmware/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

34 lines
1 KiB
Nix

{ lib
, fetchurl
, stdenvNoCC
}:
stdenvNoCC.mkDerivation rec {
pname = "sof-firmware";
version = "2.2.5";
src = fetchurl {
url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-v${version}.tar.gz";
sha256 = "sha256-V39FCHW9gzr5uLcW42jYc6rJE6Nd2ZbHqg9Srd3vku4=";
};
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 ];
};
}