Add flake.nix with portaudio + CUDA, microphone support in transcribe.py

This commit is contained in:
2026-05-26 01:55:54 +08:00
parent 8b88489a53
commit 55a51a7668
2 changed files with 51 additions and 10 deletions
+21
View File
@@ -0,0 +1,21 @@
{
description = "Cohere Transcribe dev environment with microphone support";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { nixpkgs, ... }: {
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
buildInputs = with nixpkgs.legacyPackages.x86_64-linux; [
portaudio
cudaPackages.cudatoolkit
];
shellHook = ''
export LD_LIBRARY_PATH="${cudaPackages.cudatoolkit}/lib:$LD_LIBRARY_PATH"
echo "Dev shell ready - microphone input enabled"
'';
};
};
}