3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #140742 from hmenke/sof

This commit is contained in:
Sandro 2021-10-07 22:48:05 +02:00 committed by GitHub
commit 4528364354
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,28 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib
, stdenvNoCC
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "sof-firmware";
version = "1.7";
version = "1.9";
src = fetchFromGitHub {
owner = "thesofproject";
repo = "sof-bin";
rev = "v${version}";
sha256 = "sha256-Z0Z4HLsIIuW8E1kFNhAECmzj1HkJVfbEw13B8V7PZLk=";
sha256 = "sha256-yife3gO8lXOGwRye213II9rCQqDic7B7w1xW1o7ajF8=";
};
dontFixup = true; # binaries must not be stripped or patchelfed
installPhase = ''
runHook preInstall
cd "v${version}.x"
mkdir -p $out/lib/firmware/intel/
cp -a sof-v${version} $out/lib/firmware/intel/sof
cp -a sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg
runHook postInstall
'';
meta = with lib; {