Replace flake.nix with shell.nix for simpler NixOS dev environment

This commit is contained in:
2026-05-26 01:59:15 +08:00
parent 55a51a7668
commit c055a8ffb9
2 changed files with 15 additions and 21 deletions
-21
View File
@@ -1,21 +0,0 @@
{
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"
'';
};
};
}
+15
View File
@@ -0,0 +1,15 @@
{ pkgs ? import <nixpkgs> { config.allowUnfree = true; } }:
pkgs.mkShell {
buildInputs = with pkgs; [
portaudio
cudaPackages.cudatoolkit
uv
python314
];
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.cudaPackages.cudatoolkit}/lib:$LD_LIBRARY_PATH"
echo "Dev shell ready - microphone input enabled"
'';
}