2020-06-18 07:06:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sof-firmware";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.5.1";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thesofproject";
|
|
|
|
repo = "sof-bin";
|
|
|
|
rev = "ae61d2778b0a0f47461a52da0d1f191f651e0763";
|
|
|
|
sha256 = "0j6bpwz49skvdvian46valjw4anwlrnkq703n0snkbngmq78prba";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-06-18 07:06:33 +00:00
|
|
|
mkdir -p $out/lib/firmware/intel
|
|
|
|
|
|
|
|
sed -i 's/ROOT=.*$/ROOT=$out/g' go.sh
|
|
|
|
sed -i 's/VERSION=.*$/VERSION=v${version}/g' go.sh
|
|
|
|
|
|
|
|
./go.sh
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sound Open Firmware";
|
|
|
|
homepage = "https://www.sofproject.org/";
|
|
|
|
license = with licenses; [ bsd3 isc ];
|
2020-06-18 07:06:33 +00:00
|
|
|
maintainers = with maintainers; [ lblasc evenbrenden ];
|
2020-05-15 21:57:56 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|