|
46 | 46 | # Common packages that we want available in our environment
|
47 | 47 | # regardless of the operating system
|
48 | 48 | commonPackages = with pkgs; [
|
49 |
| - python313Full # Python 3.13 interpreter |
50 |
| - python313Packages.virtualenv # Tool to create isolated Python environments |
| 49 | + python3Full # Python 3.x interpreter (highest stable?) |
51 | 50 | figlet # For creating ASCII art welcome messages
|
52 | 51 | tmux # Terminal multiplexer for managing sessions
|
53 | 52 | zlib # Compression library for data compression
|
|
57 | 56 | cmake # Cross-platform build system generator
|
58 | 57 | htop # Interactive process viewer for Unix systems
|
59 | 58 | ] ++ (with pkgs; pkgs.lib.optionals isLinux [
|
| 59 | + virtualenv |
60 | 60 | gcc # GNU Compiler Collection for compiling C/C++ code
|
61 | 61 | stdenv.cc.cc.lib # Standard C library for Linux systems
|
62 | 62 | ]);
|
|
126 | 126 | buildInputs = commonPackages ++ (with pkgs; pkgs.lib.optionals (builtins.pathExists "/usr/bin/nvidia-smi") cudaPackages);
|
127 | 127 | shellHook = ''
|
128 | 128 | # Set up the Python virtual environment
|
129 |
| - test -d .venv || ${pkgs.python311}/bin/python -m venv .venv |
| 129 | + test -d .venv || ${pkgs.python3}/bin/python -m venv .venv |
130 | 130 | export VIRTUAL_ENV="$(pwd)/.venv"
|
131 | 131 | export PATH="$VIRTUAL_ENV/bin:$PATH"
|
132 | 132 | # Customize the prompt to show we're in a Nix environment
|
|
153 | 153 | buildInputs = commonPackages;
|
154 | 154 | shellHook = ''
|
155 | 155 | # Set up the Python virtual environment
|
156 |
| - test -d .venv || ${pkgs.python311}/bin/python -m venv .venv |
| 156 | + test -d .venv || ${pkgs.python3}/bin/python -m venv .venv |
157 | 157 | export VIRTUAL_ENV="$(pwd)/.venv"
|
158 | 158 | export PATH="$VIRTUAL_ENV/bin:$PATH"
|
159 | 159 | # Customize the prompt to show we're in a Nix environment
|
|
0 commit comments