Poetry2nix | 306 Members | |
| https://github.com/nix-community/poetry2nix | 56 Servers |
| Sender | Message | Time |
|---|---|---|
| 22 Jan 2022 | ||
| It's that it doesn't even know you're trying to add stuff | 17:21:59 | |
| And you're trying to add stuff that has native dependencies | 17:22:11 | |
| And those dependencies need to exist in your shell | 17:22:19 | |
| Which is managed by Nix, which doesn't know you're trying to add stuff | 17:22:29 | |
The pillow dependency and all the other dependencies you see are already in my environment, I’m just trying to add gunicorn (which doesn’t have pillow as a dependency). I have no idea why poetry is trying to upgrade all these dependencies. | 17:25:41 | |
Ah it seems I can just do poetry add --lock gunicorn to only update the pyproject.toml & poetry.lock files without trying to install anything | 17:37:23 | |
| 20:05:15 | ||
| 23 Jan 2022 | ||
| i'm a little confused by nix scoping rules and closures. I have this minimal flake file
And it's produce this error:
I expect what since | 14:07:13 | |
| * i'm a little confused by nix scoping rules and closures. I have this minimal flake file
And it's produce this error:
I expect what since | 14:07:39 | |
poetry2nix the flake doesn't have a mkPoetryEnv attribute | 14:08:56 | |
The poetry2nix package in nixpkgs does | 14:09:46 | |
| If you want to use poetry2nix from git instead of the one in nixpkgs, you can use the overlay in the flake | 14:10:10 | |
confusing. can i do import of git hosted flake in nix repl? to explore it and experiment | 14:11:08 | |
You can with builtins.getFlake | 14:11:23 | |
| thanks | 14:11:30 | |
| But basically you want something like
| 14:12:38 | |
| also expression in lambda passed to
Does it import nixpkgs with revision locked by flake, or just version defined as channel? | 14:13:24 | |
import nixpkgs re-imports the nixpkgs input | 14:14:00 | |
import <nixpkgs> imports the channel | 14:14:05 | |
(and will fail if you're not using --impure) | 14:14:14 | |
| * also expression in lambda passed to
Does it import nixpkgs with revision locked by flake, or just version defined as channel? | 14:14:31 | |
| thanks for clarification | 14:14:45 | |
| So poetry2nix flake made all other functionality available through applying overlay to nixpkgs? So it kind of glue between everything defined in this flake modules and all other nix infrastructure? | 14:37:58 | |
| poetry2nix is included in nixpkgs | 14:38:30 | |
| The overlay just replaces the stable version in nixpkgs with the latest version from git | 14:38:43 | |
| Well, not really latest, but whichever one you have pinned | 14:38:50 | |
i'm trying to figure out how to work with shell and all my attempts to use mkPoetryEnv and using nix develop produces environments without python interpreter itself (and without poetry cli, but this is minor) even if derivation is called python3-3.9.9-env. I'm using snipets from Readme but have feelings i missed something important for understanding. | 14:50:53 | |
| But according to python mkPoetryEnv returns result of python.withPackages. I guess i need to read about this function too | 14:52:46 | |
I found problem. I should use as devShell not the entire attirbute set returned by mkPoetryEnv, but only attribute env | 15:16:12 | |
| 15:23:20 | ||