{ description = "slopbot - Zulip bot with stock price lookups and LLM replies"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; pythonEnv = pkgs.python3.withPackages (ps: [ ps.zulip ps.yfinance ps.openai ps.requests ]); in { devShells.${system}.default = pkgs.mkShell { buildInputs = [ pythonEnv ]; shellHook = '' echo "slopbot dev shell ready" echo "Run: python main.py" ''; }; packages.${system}.default = pkgs.writeShellScriptBin "slopbot" '' cd /home/ben/src/bsima/slopbot exec ${pythonEnv}/bin/python ${./main.py} ''; }; }