Update pythonshell template
This commit is contained in:
parent
1842b75a75
commit
6666d4ae21
11
templates
11
templates
|
@ -172,14 +172,13 @@ nix-mode
|
||||||
)
|
)
|
||||||
(pythonshell "let" n
|
(pythonshell "let" n
|
||||||
> "pkgs = import " (p "<nixpkgs>") " {};" n
|
> "pkgs = import " (p "<nixpkgs>") " {};" n
|
||||||
> "in pkgs.mkShellNoCC {" n
|
> "poetry = pkgs.poetry;" n
|
||||||
> "packages = with pkgs; [" n
|
> "python = pkgs." (p "python3") ";" n
|
||||||
> "poetry" n
|
> "in pkgs.mkShell {" n
|
||||||
> (p "python3") n
|
> "packages = [ poetry " q "];" n
|
||||||
> q n
|
|
||||||
> "];" 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
|
||||||
> "'';" n
|
> "'';" n
|
||||||
> "}")
|
> "}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue