Modify poetryshell template

This commit is contained in:
Evie Litherland-Smith 2024-06-16 11:36:30 +01:00
parent be88609dcc
commit b773ce4a3d

View file

@ -184,9 +184,9 @@ nix-mode
"let" n "let" n
> "pkgs = import " (p "<nixpkgs>") " {};" n > "pkgs = import " (p "<nixpkgs>") " {};" 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
> "poetryEnv = with poetry2nix; let " n > "poetryEnv = let " n
> "projectDir = " (p "./.") ";" n > "projectDir = " (p "./.") ";" n
> "in (mkPoetryEnv rec {" n > "in (poetry2nix.mkPoetryEnv rec {" n
> "inherit projectDir;" n > "inherit projectDir;" n
> "overrides = poetry2nix.defaultPoetryOverrides;" n > "overrides = poetry2nix.defaultPoetryOverrides;" n
> "python = " (p "pkgs.python3") ";" n > "python = " (p "pkgs.python3") ";" n