{ description = "Vosk speech recognition development environment"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}; in { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ pkg-config alsa-lib alsa-plugins SDL2 # This exists in AllYourCodeBase, but doesn't do it properly by handling dependencies ]; shellHook = '' export ALSA_PLUGIN_DIR=${pkgs.alsa-plugins}/lib/alsa-lib ''; }; }); }