Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform/packages: Keep around one earlier python version #1318

Merged
merged 1 commit into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions changelog.d/20250303_183108_os-python-previous-version_scriv.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!--

A new changelog entry.

Delete placeholder items that do not apply. Empty sections will be removed
automatically during release.

Leave the XX.XX as is: this is a placeholder and will be automatically filled
correctly during the release and helps when backporting over multiple platform
branches.

-->


### NixOS XX.XX platform

- install python-3.11 by default in addition to the default python-3.12
9 changes: 8 additions & 1 deletion nixos/platform/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
{
config = {

environment.systemPackages = with pkgs; [
environment.systemPackages = with pkgs;
let
previousPythonVersion = ver:
"${lib.versions.major ver}${toString (lib.toInt(lib.versions.minor ver) - 1)}";
previousPython = pkgs."python${previousPythonVersion pkgs.python3.version}";
in [
apacheHttpd
atop
automake
Expand Down Expand Up @@ -52,6 +57,8 @@
psmisc
pwgen
(python3.withPackages (ps: with ps; [ setuptools ]))
# keep around at least one previous python version for upgrade compatibility
(previousPython.withPackages (ps: with ps; [setuptools]))
python3Packages.virtualenv
rclone
ripgrep
Expand Down