Use python 3.12 in devenv

This commit is contained in:
marc committed 2024-11-10 20:12:15 +01:00
1 parent eef75973d4
commit e4bf731436
2 files changed
+5 -5

No files matched your search

@@ -1,6 +1,6 @@
{ {
description = "Development flake for this python project"; 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"; inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }: outputs = { self, nixpkgs, flake-utils }:
@@ -8,8 +8,8 @@
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
python = pkgs.python39; python = pkgs.python312;
pythonPackages = pkgs.python39Packages; pythonPackages = pkgs.python312Packages;
projectDependencies = with pythonPackages; [ projectDependencies = with pythonPackages; [
]; ];
+2 -2
View File
@@ -20,9 +20,9 @@ in
devenv = "source $HOME/.local/share/devenv/devenv.sh"; 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 { 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 ----------------------------- # - Requirements -----------------------------