3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/firmware/sof-firmware/default.nix

32 lines
762 B
Nix
Raw Normal View History

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