nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 833 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 alsa-lib, 7 python3, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "sof-tools"; 12 version = "2.14.2"; 13 14 src = fetchFromGitHub { 15 owner = "thesofproject"; 16 repo = "sof"; 17 tag = "v${finalAttrs.version}"; 18 hash = "sha256-1LLpmcwz0NYhJ9eCeuQWCwjROPptS6MWq+LkkN4Bsek="; 19 }; 20 21 postPatch = '' 22 patchShebangs ../scripts/gen-uuid-reg.py 23 ''; 24 25 nativeBuildInputs = [ 26 cmake 27 python3 28 ]; 29 buildInputs = [ alsa-lib ]; 30 sourceRoot = "${finalAttrs.src.name}/tools"; 31 32 meta = { 33 description = "Tools to develop, test and debug SoF (Sund Open Firmware)"; 34 homepage = "https://thesofproject.github.io"; 35 license = lib.licenses.bsd3; 36 platforms = lib.platforms.unix; 37 maintainers = [ lib.maintainers.johnazoidberg ]; 38 mainProgram = "sof-ctl"; 39 }; 40})