update shell.nix

This commit is contained in:
Sam 2024-11-07 21:39:26 +00:00
parent ef28791bd3
commit 5943fd5dd8
1 changed files with 7 additions and 11 deletions

View File

@ -2,22 +2,18 @@
pkgs.mkShell pkgs.mkShell
{ {
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
python312Packages.flask
python312Packages.flask-cors
python312Packages.requests
python312Packages.pandas
python312Packages.orjson
hugo hugo
tmux python311
mongodb-tools poetry
python312Packages.uvicorn
python312Packages.fastapi
python312Packages.pymongo
]; ];
NIX_LD_LIBRARY_PATH=/run/current-system/sw/share/nix-ld/lib;
NIX_LD=/run/current-system/sw/share/nix-ld/lib/ld.so;
shellHook = '' shellHook = ''
${pkgs.cowsay}/bin/cowsay "Welcome to the baseddata.io development environment!" | ${pkgs.lolcat}/bin/lolcat ${pkgs.cowsay}/bin/cowsay "Welcome to the baseddata.io development environment!" | ${pkgs.lolcat}/bin/lolcat
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
source .env
source .venv/bin/activate
get_session=$(tmux list-session | grep "baseddata") get_session=$(tmux list-session | grep "baseddata")
if [ -z "$get_session" ]; if [ -z "$get_session" ];