Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
stdenvNoCC,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "sof-firmware";
|
|
version = "2025.05.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${finalAttrs.version}/sof-bin-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-YNVOrjJpQzKiEgt8ROSvQDoU/h/fTFjXKYEQKxkdJZw=";
|
|
};
|
|
|
|
dontFixup = true; # binaries must not be stripped or patchelfed
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/lib/firmware/intel
|
|
# copy sof and sof-* recursively, preserving symlinks
|
|
cp -R -d sof{,-*} $out/lib/firmware/intel/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
changelog = "https://github.com/thesofproject/sof-bin/releases/tag/v${finalAttrs.version}";
|
|
description = "Sound Open Firmware";
|
|
homepage = "https://www.sofproject.org/";
|
|
license = with lib.licenses; [
|
|
bsd3
|
|
isc
|
|
];
|
|
maintainers = with lib.maintainers; [
|
|
lblasc
|
|
evenbrenden
|
|
hmenke
|
|
];
|
|
platforms = with lib.platforms; linux;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
|
};
|
|
})
|