From 66fc4559293ef34aee6e1d79be5d960bc39f2b0d Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 18 Mar 2024 17:32:33 +0000 Subject: [PATCH] Add poetryEnv to poetryshell template --- templates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates b/templates index 9782d3f..84db4c7 100644 --- a/templates +++ b/templates @@ -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