Files
nixpkgs/pkgs/by-name/so/sof-firmware/package.nix
Henri Menke bcdca99c5a sof-firmware: remove hmenke from maintainers
I no longer have a machine with a soundcard supported by sof-firmware, so I
cannot test the functionality of package updates anymore.
2026-09-20 19:44:51 +02:00

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 ];
};
})