Skip to content

Commit 9e1adb2

Browse files
committed
Un-hardwired to particular Python 3.x
1 parent 9f3b1df commit 9e1adb2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

flake.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
# Common packages that we want available in our environment
4747
# regardless of the operating system
4848
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?)
5150
figlet # For creating ASCII art welcome messages
5251
tmux # Terminal multiplexer for managing sessions
5352
zlib # Compression library for data compression
@@ -57,6 +56,7 @@
5756
cmake # Cross-platform build system generator
5857
htop # Interactive process viewer for Unix systems
5958
] ++ (with pkgs; pkgs.lib.optionals isLinux [
59+
virtualenv
6060
gcc # GNU Compiler Collection for compiling C/C++ code
6161
stdenv.cc.cc.lib # Standard C library for Linux systems
6262
]);
@@ -126,7 +126,7 @@
126126
buildInputs = commonPackages ++ (with pkgs; pkgs.lib.optionals (builtins.pathExists "/usr/bin/nvidia-smi") cudaPackages);
127127
shellHook = ''
128128
# 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
130130
export VIRTUAL_ENV="$(pwd)/.venv"
131131
export PATH="$VIRTUAL_ENV/bin:$PATH"
132132
# Customize the prompt to show we're in a Nix environment
@@ -153,7 +153,7 @@
153153
buildInputs = commonPackages;
154154
shellHook = ''
155155
# 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
157157
export VIRTUAL_ENV="$(pwd)/.venv"
158158
export PATH="$VIRTUAL_ENV/bin:$PATH"
159159
# Customize the prompt to show we're in a Nix environment

0 commit comments

Comments
 (0)