3
0
Fork 0
forked from mirrors/nixpkgs

sof-firmware: init at 1.4.2

This commit is contained in:
Luka Blaskovic 2020-04-28 05:25:38 +00:00
parent 537f10f044
commit fe7f770666
3 changed files with 31 additions and 0 deletions

View file

@ -51,6 +51,7 @@ in {
rtlwifi_new-firmware
zd1211fw
alsa-firmware
sof-firmware
openelec-dvb-firmware
] ++ optional (pkgs.stdenv.hostPlatform.isAarch32 || pkgs.stdenv.hostPlatform.isAarch64) raspberrypiWirelessFirmware
++ optionals (versionOlder config.boot.kernelPackages.kernel.version "4.13") [

View file

@ -0,0 +1,28 @@
{ stdenv, fetchurl }:
with stdenv.lib;
stdenv.mkDerivation rec {
pname = "sof-firmware";
version = "1.4.2";
src = fetchurl {
url = "https://www.alsa-project.org/files/pub/misc/sof/${pname}-${version}.tar.bz2";
sha256 = "1nkh020gjm45vxd6fvmz63hj16ilff2nl5avvsklajjs6xci1sf5";
};
phases = [ "unpackPhase" "installPhase" ];
installPhase = ''
rm lib/firmware/intel/{sof/LICENCE,sof-tplg/LICENCE}
mkdir $out
cp -r lib $out/lib
'';
meta = with stdenv.lib; {
description = "Sound Open Firmware";
homepage = "https://www.sofproject.org/";
license = with licenses; [ bsd3 isc ];
maintainers = with maintainers; [ lblasc ];
platforms = with platforms; linux;
};
}

View file

@ -6666,6 +6666,8 @@ in
python = python3;
};
sof-firmware = callPackage ../os-specific/linux/firmware/sof-firmware { };
softhsm = callPackage ../tools/security/softhsm {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) Security;