nixpkgs-suyu/pkgs/os-specific/linux/firmware/sof-firmware/default.nix

32 lines
755 B
Nix
Raw Normal View History

{ 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";
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";
rev = "cbdec6963b2c2d58b0080955d3c11b96ff4c92f0";
sha256 = "0la2pw1zpv50cywiqcfb00cxqvjc73drxwjchyzi54l508817nxh";
2020-04-28 07:25:38 +02:00
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
mkdir -p $out/lib/firmware
2020-06-09 11:22:02 +02:00
patchShebangs go.sh
ROOT=$out SOF_VERSION=v${version} ./go.sh
2020-04-28 07:25:38 +02: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;
};
}