Add poetryEnv to poetryshell template

This commit is contained in:
Evie Litherland-Smith 2024-03-18 17:32:33 +00:00
parent 88e15182c6
commit 66fc455929

View file

@ -176,13 +176,13 @@ nix-mode
"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> "}"
)
(pythonshell "") ; TODO
(poetryshell "let"
n> "pkgs = import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
n> "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
n> "in"
n> "pkgs.mkShellNoCC {"
n> "packages = [" p "];"
n> "packages = [" (p "pkgs.poetry poetry2nix.mkPoetryEnv {projectDir = ./.; preferWheels = true;}") "];"
n> "}")
(poetrypackage "") ; TODO