From b51f0596a318015b8d594276acc319aed1b6b9d5 Mon Sep 17 00:00:00 2001 From: 0xWheatyz Date: Sat, 6 Dec 2025 17:41:59 -0500 Subject: [PATCH] chore: more changes to flake.nix --- flake.nix | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/flake.nix b/flake.nix index 91f3859..45ea78c 100644 --- a/flake.nix +++ b/flake.nix @@ -14,14 +14,15 @@ # Define Python version and packages pythonVersion = "python311"; # You can change this to python310, python312, etc. + pythonEnv = pkgs.${pythonVersion}; # Get the specific Python environment + pythonPackages = ps: with ps; [ # Core Python - pkgs.${pythonVersion} + #pkgs.${pythonVersion} - # Common development tools - pip - setuptools - wheel + pythonEnv.pkgs.pip + pythonEnv.pkgs.setuptools + pythonEnv.pkgs.wheel # Example useful packages (uncomment and add as needed) # black # Code formatter @@ -41,17 +42,7 @@ # Environment variables you might want to set shellHook = '' echo "Welcome to the Python development shell!" - export PATH="$HOME/.local/bin:$PATH" # Example: if you install packages globally via pip (not recommended with Nix) - # If you are using a specific Python version managed by Nix, you might - # want to ensure it's in your PATH. The above `packages` should handle this. - - # You can also set up virtual environments here if you prefer, - # although Nix aims to manage dependencies directly. - # Example: using venvwrapper if installed - # if [ -f "$(command -v venvwrapper.sh)" ]; then - # export WORKON_HOME=$HOME/.virtualenvs - # source $(command -v venvwrapper.sh) - # fi + export NIX_PROJECT_SHELL="SPARC" ''; }; }