Update pythonshell template, add uv package
This commit is contained in:
parent
9174821a35
commit
884721a58a
|
@ -172,13 +172,12 @@ nix-mode
|
||||||
)
|
)
|
||||||
(pythonshell "let" n
|
(pythonshell "let" n
|
||||||
> "pkgs = import " (p "<nixpkgs>") " {};" n
|
> "pkgs = import " (p "<nixpkgs>") " {};" n
|
||||||
> "poetry = pkgs.poetry;" n
|
|
||||||
> "python = pkgs." (p "python3") ";" n
|
> "python = pkgs." (p "python3") ";" n
|
||||||
> "in pkgs.mkShell {" n
|
> "in pkgs.mkShell {" n
|
||||||
> "packages = [ poetry " q "];" n
|
> "packages = with pkgs; [ poetry uv " q "];" n
|
||||||
> "shellHook = ''" n
|
> "shellHook = ''" n
|
||||||
> "export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib" n
|
> "export LD_LIBRARY_PATH=${pkgs.stdenv.cc.cc.lib}/lib" n
|
||||||
> "${poetry}/bin/poetry env use ${python}/bin/python3" n
|
> "${pkgs.poetry}/bin/poetry env use ${python}/bin/python3" n
|
||||||
> "'';" n
|
> "'';" n
|
||||||
> "}")
|
> "}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue