!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

300 Members
https://github.com/nix-community/poetry2nix54 Servers

Load older messages


SenderMessageTime
2 Nov 2023
@virtu:matrix.imvirtu if I just copy the inherit, it won't work, because it expects pkgs to be a particular system's instance of the packages. 12:06:22
@adis:blad.isadisbladis This is totally ugly, but you could probably get away with it: pkgs = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; in pkgs // { poetry2nix = poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }; }) 12:10:21
@adis:blad.isadisbladisBasically we're injecting a poetry2nix attribute on top of nixpkgs, so no other changes should be needed if you previously used it from nixpkgs12:11:49
@virtu:matrix.imvirtuthanks!12:15:17
@nazarewk:matrix.orgkdni've trouble with infinite recursion when trying to use out-of-tree poetry2nix, anyone else had such issues?12:27:27
@k900:0upti.meK900Update it12:31:41
@k900:0upti.meK900Should be fixed now12:31:45
@nazarewk:matrix.orgkdnI did just create the project (actually moving from flakes to devenv.nix), so the version is latest12:36:09
@k900:0upti.meK900And what nixpkgs version are you on?12:39:17
@nazarewk:matrix.orgkdn I'm trying to determine what is different, because in here it seems to be working fine 12:43:04
@nazarewk:matrix.orgkdnbut I have a second (private) repo moving from flakes to devenv.nix (too much trouble to maintain flake) where it doesn't work12:43:46
@k900:0upti.meK900Are you using nixpkgs-unstable?12:45:02
@nazarewk:matrix.orgkdnyeah12:45:09
@k900:0upti.meK900It needs to be nixpkgs-unstable for latest poetry2nix12:45:09
@k900:0upti.meK900If it's still looping, it might just be a bug12:45:16
@k900:0upti.meK900Or you might have a circular dependency somewhere12:45:22
@k900:0upti.meK900That happens12:45:23
@nazarewk:matrix.orgkdnoh wait12:45:24
@nazarewk:matrix.orgkdnis it nixpkgs-unstable or nixos-unstable?12:46:33
@k900:0upti.meK900Either one12:49:39
@nazarewk:matrix.orgkdn both seem to have nixpkgs at 0cbe9f69c234a7700596e943bfae7ef27a31b735 and poetry2nix at 349143fce1c8c38255fb8a8d99e2c0cd5854889c 12:57:53
@nazarewk:matrix.orgkdnseems like I cannot use any poetry2nix package whatsoever in the private repo13:03:31
@nazarewk:matrix.orgkdn might be something weird with devenv, but I'm not sure what could it be 13:03:54
@nazarewk:matrix.orgkdnI think it's loading too much of something at once at some point...13:22:13
@nazarewk:matrix.orgkdnyeah, devenv seems to be at fault here13:25:29
@nazarewk:matrix.orgkdnhere we go with a bug report https://github.com/cachix/devenv/issues/85914:26:13
@nazarewk:matrix.orgkdnI did create a working flake-only version and not working (pretty much OOTB after adding input) devenv configuration14:29:08
@nazarewk:matrix.orgkdnnot sure how much is it poetry2nix doing something weird and how much devenv itself14:44:42
3 Nov 2023
@adis:blad.isadisbladisSome project improvements: I've set up Renovate (auto updater bot) & Mergify (auto-merge bot). The Flake will be updated weekly & auto-merged by mergify if tests pass.01:57:56
@mib:kanp.aimib 🥐 changed their profile picture.13:55:56

Show newer messages


Back to Room ListRoom Version: 6