Poetry2nix | 303 Members | |
| https://github.com/nix-community/poetry2nix | 55 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Jan 2022 | ||
| It's not a poetry2nix thing, it's a flakes thing. | 23:52:40 | |
| 12 Jan 2022 | ||
| Ahh, I understand. What do you suggest me then? What would be the correct way to use a flake to manage a development flow like this? | 00:02:20 | |
In reply to @aciceri:nixos.dev I've seen people using I'm not a flakes user so I might not be of too much help. | 00:03:47 | |
| Thank you for the hint, I'll try. Do you know any project using flake and poetry2nix as reference? | 00:31:16 | |
zrsk: I have been packaging a few python apps as nix flakes. I'm no expert, but what's worked for me with editable installs is mkPoetryEnv as devShell instead of mkShell with the env as an input | 00:33:43 | |
| here is a copy paste of an example from one of the apps I packaged last week
| 00:36:11 | |
averagechris: thank you! I'll definitely try this approach, I don't like the idea to use --impure | 00:39:17 | |
| Good luck and let us know if you learn anything interesting :) | 00:39:47 | |
In reply to @averagechris:matrix.orgI don't understand how that would work, but if it does I'm very interested in knowing more... | 00:42:56 | |
| I'm using lorri that might be it? | 00:44:26 | |
| so maybe I'm just slow enough so that it reevaluates everything | 00:44:47 | |
| Lorri doesn't have flakes support afaik? | 00:45:39 | |
| you have to make a compatible shell.nix | 00:46:03 | |
| Right, then the evaluation model is different | 00:46:14 | |
| Flakes enforces hermetic evaluation by copying everything to the store | 00:46:35 | |
| Which changes the semantics of paths | 00:46:49 | |
| ah right and so when lorri invokes the shell.nix those semantics are not in place | 00:47:23 | |
| zrsk: that's important context ^ | 00:47:33 | |
| Exactamundo | 00:47:34 | |
| Totally makes sense I didn't even think about that. | 00:47:54 | |
| 03:00:47 | ||
| 11:53:46 | ||
| hello folks, I'm trying to use poetry2nix (total noob in nix, sorry) with a new project I'm developing. it's weird that I can run this without problems:
however, when I attempt to build it, it fails:
of course, plumbum is in my dependencies, added with | 11:57:58 | |
nix shell and nix run fail with the same error as nix build; of course I can just use nix develop for everything, but it doesn't seem extremely nice to me when not actually developing | 12:00:18 | |
| any idea on how to fix it? | 12:02:29 | |
| did I give enough information? | 13:20:53 | |
| 15 Jan 2022 | ||
| 09:34:30 | ||
| 16 Jan 2022 | ||
| 15:01:46 | ||
| 17 Jan 2022 | ||
| Hi everyone. Thanks to all who contributed into such great tool. It works like a charm. But i encountered issue that's is quite common, according to search. Issue i encountered is related to But i would like to know is it the only way to avoid infinite recursion or there are another more elegant without polluting dependencies? Also i would like to understand what goes under the hood to produce such error, is there any explanation documented? | 08:36:36 | |
| * Hi everyone. Thanks to all who contributed into such great tool. It works like a charm. But i encountered issue that's is quite common, according to search. Issue i encountered is related to But i would like to know is it the only way to avoid infinite recursion or there are another more elegant ways without polluting dependencies? Also i would like to understand what goes under the hood to produce such error, is there any explanation documented? | 08:40:01 | |