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

30 lines
797 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2020-04-28 06:25:38 +01:00
stdenv.mkDerivation rec {
pname = "sof-firmware";
2021-04-30 14:02:09 +01:00
version = "1.7";
2020-04-28 06:25:38 +01:00
2020-06-09 10:22:02 +01:00
src = fetchFromGitHub {
owner = "thesofproject";
repo = "sof-bin";
2021-04-30 14:02:09 +01:00
rev = "v${version}";
sha256 = "sha256-Z0Z4HLsIIuW8E1kFNhAECmzj1HkJVfbEw13B8V7PZLk=";
2020-04-28 06:25:38 +01:00
};
2021-04-30 14:02:09 +01:00
dontFixup = true; # binaries must not be stripped or patchelfed
2020-04-28 06:25:38 +01:00
installPhase = ''
2021-04-30 14:02:09 +01:00
mkdir -p $out/lib/firmware/intel/
cp -a sof-v${version} $out/lib/firmware/intel/sof
cp -a sof-tplg-v${version} $out/lib/firmware/intel/sof-tplg
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 ];
2021-04-30 14:02:09 +01:00
maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
2020-04-28 06:25:38 +01:00
platforms = with platforms; linux;
};
}