Update poetryshell template
This commit is contained in:
parent
db20119587
commit
e2614e94c0
13
templates
13
templates
|
@ -184,19 +184,20 @@ nix-mode
|
|||
"let" n
|
||||
> "pkgs = import " (p "<nixpkgs>") " {};" 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
|
||||
> "preferWheels = true;" n
|
||||
> "extras = [\"*\"];" n
|
||||
> "editablePackageSources = {" (p "package") "= projectDir;};" n
|
||||
> "extraPackages = (ps: [" q "]);" n
|
||||
> "preferWheels = true;" n
|
||||
> "groups = [\"dev\"];" n
|
||||
> "extras = [\"*\"];" 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
|
||||
|
|
Loading…
Reference in a new issue