Use python 3.12 in devenv

This commit is contained in:
marc
2024-10-27 14:49:41 +01:00
parent eef75973d4
commit e4bf731436
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{
description = "Development flake for this python project";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
@@ -8,8 +8,8 @@
pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python39;
pythonPackages = pkgs.python39Packages;
python = pkgs.python312;
pythonPackages = pkgs.python312Packages;
projectDependencies = with pythonPackages; [
];

View File

@@ -20,9 +20,9 @@ in
devenv = "source $HOME/.local/share/devenv/devenv.sh";
};
# TODO: This assumes we have alacritty and a python39 devenv set up (may want to fix this at some point)
# TODO: This assumes we have alacritty and a python311 devenv set up (may want to fix this at some point)
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
"${i3Cfg.mod}+Shift+P" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term -e zsh -c \"direnv exec ~/sandbox/python39 ipython\"";
"${i3Cfg.mod}+Shift+P" = "exec ${pkgs.alacritty}/bin/alacritty -t floating-term -e zsh -c \"direnv exec ~/sandbox/python311 ipython\"";
};
# - Requirements -----------------------------