2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-04-28 07:25:38 +02:00
|
|
|
|
2021-01-15 15:45:37 +01:00
|
|
|
with lib;
|
2020-04-28 07:25:38 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sof-firmware";
|
2020-11-14 08:20:20 +01:00
|
|
|
version = "1.6";
|
2020-04-28 07:25:38 +02:00
|
|
|
|
2020-06-09 11:22:02 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thesofproject";
|
|
|
|
repo = "sof-bin";
|
2020-11-14 08:20:20 +01:00
|
|
|
rev = "cbdec6963b2c2d58b0080955d3c11b96ff4c92f0";
|
|
|
|
sha256 = "0la2pw1zpv50cywiqcfb00cxqvjc73drxwjchyzi54l508817nxh";
|
2020-04-28 07:25:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-11-14 08:20:20 +01:00
|
|
|
mkdir -p $out/lib/firmware
|
2020-06-09 11:22:02 +02:00
|
|
|
|
2020-11-14 08:20:20 +01:00
|
|
|
patchShebangs go.sh
|
|
|
|
ROOT=$out SOF_VERSION=v${version} ./go.sh
|
2020-04-28 07:25:38 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-28 07:25:38 +02:00
|
|
|
description = "Sound Open Firmware";
|
|
|
|
homepage = "https://www.sofproject.org/";
|
|
|
|
license = with licenses; [ bsd3 isc ];
|
2020-06-09 11:22:02 +02:00
|
|
|
maintainers = with maintainers; [ lblasc evenbrenden ];
|
2020-04-28 07:25:38 +02:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|