a3bb8d7922
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
29 lines
797 B
Nix
29 lines
797 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sof-firmware";
|
|
version = "1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thesofproject";
|
|
repo = "sof-bin";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Z0Z4HLsIIuW8E1kFNhAECmzj1HkJVfbEw13B8V7PZLk=";
|
|
};
|
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
|
|
|
installPhase = ''
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sound Open Firmware";
|
|
homepage = "https://www.sofproject.org/";
|
|
license = with licenses; [ bsd3 isc ];
|
|
maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|