diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000000000000000000000000000000000000..98f4a2ced5cb9c8554d7ce547961a1f6f69be667 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +{ pkgs ? import <nixpkgs> {} }: + +pkgs.mkShell rec { + buildInputs = [ + pkgs.python311 + pkgs.pipenv + ]; + + shellHook = '' + export PIPENV_VENV_IN_PROJECT=1 # Cria o ambiente virtual dentro do projeto + export PIPENV_IGNORE_VIRTUALENVS=1 # Ignora ambientes virtuais preexistentes + echo "Ambiente configurado com Pipenv e Python 3.11!" + ''; +}