!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

316 Members
https://github.com/nix-community/poetry2nix59 Servers

Load older messages


SenderMessageTime
25 Oct 2023
@k900:0upti.meK900And another one for nixops22:47:36
@k900:0upti.meK900Fuck my life22:47:38
@pcloud:matrix.orgcpcloud I eventually gave up on source builds and have been happily using preferWheels = true; 22:49:58
@pcloud:matrix.orgcpcloudThings are just much much more pleasant that way22:50:06
26 Oct 2023
@pcloud:matrix.orgcpcloud Attempt at removing getCargoHash: https://github.com/nix-community/poetry2nix/pull/1371 12:34:47
@k900:0upti.meK900That's IFD12:54:35
@pcloud:matrix.orgcpcloudDarn13:37:54
@pcloud:matrix.orgcpcloudWait, how?13:38:30
@pcloud:matrix.orgcpcloudBecause of runCommand?13:39:35
@k900:0upti.meK900 Because importCargoLock is eval time 13:39:58
@k900:0upti.meK900It'll make a separate FOD for every dependency crate 13:40:40
@pcloud:matrix.orgcpcloudIt looks like we're already using import cargo lock in at least one place iirc14:16:08
@pcloud:matrix.orgcpcloudDoes that need to be changed?14:16:19
@k900:0upti.meK900If we're not vendoring the Cargo.lock, yes14:19:43
@k900:0upti.meK900Yeah14:20:24
@k900:0upti.meK900Those are also IFD14:20:26
@k900:0upti.meK900But also, now that we're about to not be in nixpkgs anymore, maybe we should just give up14:20:38
@k900:0upti.meK900And allow IFD by default14:20:42
@k900:0upti.meK900It will solve most of the Cargo.lock issues and it will also solve most of the buildsystem overrides because we can just look at the pyproject.toml14:21:00
@pcloud:matrix.orgcpcloudBeing able to look at build systems would be realllllly nice 14:22:25
@schmittlauch:ohai.isschmittlauch (he/him) Hm, removing legacyPackages.poetry2nix from the flake in the latest update broke my setup after re-locking. Not too bad to fix, but unexpected. I guess I ended up with that legacyPackages reference in the first place due to starting with a generic python template that took poetry2nix` from the nixpkgs input, and then transitioned to using the poetry2nix flake. 21:08:44
@schmittlauch:ohai.isschmittlauch (he/him) For reproducing https://github.com/nix-community/poetry2nix/issues/1351 with the latest master HEAD, I am struggling a bit to rework my flake to use poetry2nix. How do I now get the poetry2nix builders like mkPoetryEnv? 21:21:35
@schmittlauch:ohai.isschmittlauch (he/him)

The template uses

      let
        # see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
        pkgs = nixpkgs.legacyPackages.${system};
        inherit (import poetry2nix { inherit pkgs; }) mkPoetryApplication;

but I do not fully understand how this works in the background. Does this utilise the overlay output of the poetry2nix flake?

21:23:00
@k900:0upti.meK900 import poetry2nix { inherit pkgs; } 21:23:06
@k900:0upti.meK900No21:23:14
@k900:0upti.meK900It just creates an instance of poetry2nix that's not overlayed anywhere21:23:34
@k900:0upti.meK900It's standalone21:23:36
@schmittlauch:ohai.isschmittlauch (he/him) Is poetry2nix specified as an output of that flake? 21:23:59
@schmittlauch:ohai.isschmittlauch (he/him)Or how is it exposed as a name/ attr?21:24:16
@k900:0upti.meK900 No, poetry2nix is the flake input 21:24:19

Show newer messages


Back to Room ListRoom Version: 6