!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

326 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
24 Oct 2023
@k900:0upti.meK900
In reply to@pcloud:matrix.org
Sure, but I don't think we're using nixpkgs poetry in poetry2nix
We should still be using nixpkgs overrides?
13:12:33
@k900:0upti.meK900Though maybe not13:12:38
@pcloud:matrix.orgcpcloudThere's a vendored version of poetry in poetry2nix13:12:50
@pcloud:matrix.orgcpcloudpartially vendored13:13:02
@pcloud:matrix.orgcpcloud the source isn't there, but there's a src.json that seeds a derviation that builds it 13:13:25
@pcloud:matrix.orgcpcloud * the source isn't there, but there's a src.json that seeds a derviation that builds it from the github release 13:13:30
@k900:0upti.meK900I wonder if we should just get rid of that13:13:32
@k900:0upti.meK900We should be able to use the same bootstrap chain as nixpkgs now13:13:47
@pcloud:matrix.orgcpcloud"should" :)13:13:57
@pcloud:matrix.orgcpcloudLemme give it a shot13:14:46
@k900:0upti.meK900https://github.com/NixOS/nixpkgs/pull/26313913:19:59
@k900:0upti.meK900Pushed up the fix to nixpkgs13:20:03
@pcloud:matrix.orgcpcloudNice, thanks13:20:23
@pcloud:matrix.orgcpcloudAlright, I'm moving poetry over to the one from nixpkgs13:33:28
@pcloud:matrix.orgcpcloudIs there a way to overlay your changes onto the nixpkgs coming from the poetry2nix flake.nix? I suppose one option is to do that on my nixpkgs fork13:39:01
@pcloud:matrix.orgcpcloudSweet, that patch addresses the issue13:45:45
@virtu:matrix.imvirtuIs there a set of best practices when creating applications/services with poetry2nix? My first non-informed approach would have been to include a package.nix and a module.nix in the root of the repo, and include them in flake.nix. But then I came across NUR (Nix User Repositories), which appears to be a dedicated spaces for defining modules and packages separate from the code. Is this considered the standard way?13:56:42
@k900:0upti.meK900Not really, no13:58:18
@k900:0upti.meK900NUR predates flakes13:58:22
@k900:0upti.meK900And is mostly designed as a big aggregate of community repos13:58:30
@virtu:matrix.imvirtu Okay, thanks. Any conventions about where to put package and module definitions? Is it okay to have a flake.nix that uses module.nix and package.nix, or do I put everything into the flake? If you happen to know a project that uses the approach I could use as a reference, that'd be great. 14:02:00
@k900:0upti.meK900There's no official rules14:02:13
@k900:0upti.meK900Just organize stuff in a way that fits your workflow14:02:20
@virtu:matrix.imvirtuI thought as much, but if there's like some community consensus or best practice, I'd like to follow that. But if there isn't, I'll just give it a shot and put everything into the flake to avoid cluttering the repo (and avoid confusing non-nix people)14:03:23
@k900:0upti.meK900There really isn't14:04:25
@k900:0upti.meK900And you can always refactor late14:04:29
@k900:0upti.meK900* And you can always refactor later14:04:30
@virtu:matrix.imvirtualright, thanks!14:04:37
@pcloud:matrix.orgcpcloud a bunch of packages still require poetry-the-library but that seems to be removed in nixpkgs 14:34:28
@pcloud:matrix.orgcpcloudThis is a bit of a problem, since it means we risk duplicate derivations14:34:52

Show newer messages


Back to Room ListRoom Version: 6