From e2614e94c0e199e6310af0f06d2b004c7c782327 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 14 Jun 2024 18:03:36 +0100 Subject: [PATCH] Update poetryshell template --- templates | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/templates b/templates index 3dfd9fa..8c81517 100644 --- a/templates +++ b/templates @@ -184,19 +184,20 @@ nix-mode "let" n > "pkgs = import " (p "") " {};" n > "poetry2nix = (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};" n - > "env = with poetry2nix; let " n + > "poetryEnv = with poetry2nix; let " n > "projectDir = " (p "./.") ";" n > "in (mkPoetryEnv rec {" n > "inherit projectDir;" n + > "overrides = poetry2nix.defaultPoetryOverrides;" n > "python = " (p "pkgs.python3") ";" n + > "editablePackageSources = {" (p "package") "= projectDir;};" n + > "extraPackages = (ps: [" q "]);" n > "preferWheels = true;" n + > "groups = [\"dev\"];" n > "extras = [\"*\"];" n - > "editablePackageSources = {" (p "package") "=projectDir;};" n > "});" n "in" n - > "pkgs.mkShellNoCC {" n - > "packages = [pkgs.poetry env " q "];" n - > "}") + > "poetryEnv.env") (poetryoverride "overrides = poetry2nix.defaultPoetryOverrides.extend" n > "(self: super: {" n > (s package) " =" n