Files
2026-01-31 21:48:35 +00:00

41 lines
833 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
alsa-lib,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sof-tools";
version = "2.14.3";
src = fetchFromGitHub {
owner = "thesofproject";
repo = "sof";
tag = "v${finalAttrs.version}";
hash = "sha256-eFK00qQ2BAajxWDl2La2+8Lj6GUUfeUAFhK5TC4XkCM=";
};
postPatch = ''
patchShebangs ../scripts/gen-uuid-reg.py
'';
nativeBuildInputs = [
cmake
python3
];
buildInputs = [ alsa-lib ];
sourceRoot = "${finalAttrs.src.name}/tools";
meta = {
description = "Tools to develop, test and debug SoF (Sund Open Firmware)";
homepage = "https://thesofproject.github.io";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.johnazoidberg ];
mainProgram = "sof-ctl";
};
})