Add poetryEnv to poetryshell template
This commit is contained in:
parent
88e15182c6
commit
66fc455929
|
@ -176,13 +176,13 @@ nix-mode
|
||||||
"platforms = platforms."
|
"platforms = platforms."
|
||||||
(p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}"
|
(p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}"
|
||||||
)
|
)
|
||||||
|
(pythonshell "") ; TODO
|
||||||
(poetryshell "let"
|
(poetryshell "let"
|
||||||
n> "pkgs = import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
|
n> "pkgs = import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
|
||||||
n> "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
|
n> "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
|
||||||
n> "in"
|
n> "in"
|
||||||
n> "pkgs.mkShellNoCC {"
|
n> "pkgs.mkShellNoCC {"
|
||||||
n> "packages = [" p "];"
|
n> "packages = [" (p "pkgs.poetry poetry2nix.mkPoetryEnv {projectDir = ./.; preferWheels = true;}") "];"
|
||||||
n> "}")
|
n> "}")
|
||||||
(poetrypackage "") ; TODO
|
(poetrypackage "") ; TODO
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue