mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
I no longer have a machine with a soundcard supported by sof-firmware, so I cannot test the functionality of package updates anymore.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
stdenvNoCC,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "sof-firmware";
|
|
version = "2025.12.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/thesofproject/sof-bin/releases/download/v${finalAttrs.version}/sof-bin-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-Uz9j46bZTAnOBaeCZXtnX6aD/yB4fAl5Imz1Y+x59Rc=";
|
|
};
|
|
|
|
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
|
|
];
|
|
platforms = with lib.platforms; linux;
|
|
sourceProvenance = with lib.sourceTypes; [ binaryFirmware ];
|
|
};
|
|
})
|