From 88e15182c65ac837e3eaff281a75699e6140ca16 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 18 Mar 2024 13:36:07 +0000 Subject: [PATCH] Add nix-shell poetry template --- templates | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/templates b/templates index 6963cea..9782d3f 100644 --- a/templates +++ b/templates @@ -177,6 +177,15 @@ nix-mode (p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}" ) +(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> "}") +(poetrypackage "") ; TODO + python-base-mode (clss "class " (p "Class") "(" p "):"