571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib
|
|
, fetchurl
|
|
, stdenvNoCC
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "sof-firmware";
|
|
version = "2024.09";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${version}/sof-bin-${version}.tar.gz";
|
|
sha256 = "sha256-6kfZn4E1kAjQdhi8oQPPePgthOlAv+lBoor+B8jLxiA=";
|
|
};
|
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib/firmware/intel
|
|
cp -av sof $out/lib/firmware/intel/sof
|
|
cp -av sof-tplg $out/lib/firmware/intel/sof-tplg
|
|
cp -av sof-ace-tplg $out/lib/firmware/intel/sof-ace-tplg
|
|
cp -av sof-ipc4 $out/lib/firmware/intel/sof-ipc4
|
|
cp -av sof-ipc4-tplg $out/lib/firmware/intel/sof-ipc4-tplg
|
|
cp -av sof-ipc4-lib $out/lib/firmware/intel/sof-ipc4-lib
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/thesofproject/sof-bin/releases/tag/v${version}";
|
|
description = "Sound Open Firmware";
|
|
homepage = "https://www.sofproject.org/";
|
|
license = with licenses; [ bsd3 isc ];
|
|
maintainers = with maintainers; [ lblasc evenbrenden hmenke ];
|
|
platforms = with platforms; linux;
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
}
|