Don't use a specific python3 version

This commit is contained in:
Jakob Lechner 2023-11-24 21:36:01 +00:00
parent 32fdc2e948
commit 7bdd465204
No known key found for this signature in database
GPG key ID: 996082EFB5906C10
3 changed files with 6 additions and 6 deletions

View file

@ -112,14 +112,14 @@
# Python
pylsp = {
cmd = [ "${pkgs.python310Packages.python-lsp-server}/bin/pylsp" ];
cmd = [ "${pkgs.python3Packages.python-lsp-server}/bin/pylsp" ];
settings = {
# https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md
pylsp = {
plugins = {
flake8 = {
enabled = true;
executable = "${pkgs.python310Packages.flake8}/bin/flake8";
executable = "${pkgs.python3Packages.flake8}/bin/flake8";
};
jedi_completion = { enabled = true; };
jedi_definition = { enabled = true; };

View file

@ -1,8 +1,8 @@
{ nixosConfig, lib, pkgs, ... }:
lib.mkIf nixosConfig.jalr.workstation.enable {
home.packages = with pkgs; [
python310
python310Packages.virtualenv
python310Packages.ipython
python3
python3Packages.virtualenv
python3Packages.ipython
];
}

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
chmod +x $out/bin/move-to-output
'';
script = ''
#!${pkgs.python310}/bin/python
#!${pkgs.python3}/bin/python
import sys
import json
import subprocess