2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
with lib;
|
2020-05-15 21:57:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sof-firmware";
|
2020-12-03 08:41:04 +00:00
|
|
|
version = "1.6";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thesofproject";
|
|
|
|
repo = "sof-bin";
|
2020-12-03 08:41:04 +00:00
|
|
|
rev = "cbdec6963b2c2d58b0080955d3c11b96ff4c92f0";
|
|
|
|
sha256 = "0la2pw1zpv50cywiqcfb00cxqvjc73drxwjchyzi54l508817nxh";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-12-03 08:41:04 +00:00
|
|
|
mkdir -p $out/lib/firmware
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
patchShebangs go.sh
|
|
|
|
ROOT=$out SOF_VERSION=v${version} ./go.sh
|
2020-05-15 21:57:56 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|