Don't use a specific python3 version
This commit is contained in:
parent
32fdc2e948
commit
7bdd465204
3 changed files with 6 additions and 6 deletions
|
|
@ -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; };
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue