From 62b6f95c410ae0c124a3b92baae75072c60bf167 Mon Sep 17 00:00:00 2001 From: yago yudi <yyvf@pm.me> Date: Thu, 6 Mar 2025 11:04:32 -0300 Subject: [PATCH] Adiciona shell.nix --- shell.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..98f4a2c --- /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!" + ''; +} -- GitLab