!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

324 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
26 Oct 2023
@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
@k900:0upti.meK900So it'll resolve to the path of the poetry2nix repo21:24:27
@k900:0upti.meK900And it will import its default.nix21:24:54
@k900:0upti.meK900Which is defined like this: https://github.com/nix-community/poetry2nix/blob/master/default.nix21:24:57
@schmittlauch:ohai.isschmittlauch (he/him)Yes, but when reading through the actual poetry2nix flake.nix file in the repo I do not understand what actually is imported there.21:25:15
@k900:0upti.meK900 default.nix is what is imported 21:25:55
@schmittlauch:ohai.isschmittlauch (he/him)Oh well, is this a crude workaround or an actual intended way of using this?21:26:13
@k900:0upti.meK900We might export it as a function in the flake eventually21:26:40
@k900:0upti.meK900 Similar to say nixpkgs.lib.nixosSystem 21:26:46
@schmittlauch:ohai.isschmittlauch (he/him)I thought the main idea is that you only reference explicit outputs of other flakes21:26:50
@k900:0upti.meK900But it is a perfectly fine way to use this21:26:53
@schmittlauch:ohai.isschmittlauch (he/him)Okay. thx.21:27:10
@k900:0upti.meK900And it's better than the old way because it avoids yet another nixpkgs instance21:27:15
* @schmittlauch:ohai.isschmittlauch (he/him) is still a bit weirded out but starts to understand 21:27:35
@schmittlauch:ohai.isschmittlauch (he/him)
In reply to @k900:0upti.me
And it's better than the old way because it avoids yet another nixpkgs instance
Ah, that new instance only happens when using it as an overlay? I saw we now hardcode a list of permittedInsecurePackages.
21:28:19
@k900:0upti.meK900That list is very old21:28:27
@k900:0upti.meK900And the new instance happens when we export the builder functions directly from the flake21:28:46
@k900:0upti.meK900Because those use the flake's nixpkgsd21:28:51
@k900:0upti.meK900* Because those use the flake's nixpkgs21:28:52
@k900:0upti.meK900And not your app's21:28:55
@schmittlauch:ohai.isschmittlauch (he/him)I see. Thx.21:29:21
@schmittlauch:ohai.isschmittlauch (he/him)Still not qualified enough to figure out the best design choices, but flakes often trigger significant cases of "wat!?" for me ^^21:30:14
@schmittlauch:ohai.isschmittlauch (he/him)
In reply to @k900:0upti.me
And the new instance happens when we export the builder functions directly from the flake
I see why you're doing it that way, but IMHO needing to do this is still against the basic claimed perks/ goals of flakes, e.g. that they have introspectable, discoverable and (hopefully) enumerable outputs that are then re-used by other flakes.
22:05:01
@k900:0upti.meK900 Again, we should probably export poetry2nix.lib.mkPoetry2Nix { pkgs } 22:06:03
@schmittlauch:ohai.isschmittlauch (he/him)If this has the same footprint regarding number of evaluated nixpkgs instances, then: yes, that'd be great (:22:14:41
@k900:0upti.meK900It dos22:15:13
@k900:0upti.meK900* It does22:15:15
@schmittlauch:ohai.isschmittlauch (he/him)And as the legacyPackages output was only broken on master a few days ago, it is IMHO tolerable to break the exposed API again.22:15:31
@k900:0upti.meK900It doesn't break anything22:23:18

Show newer messages


Back to Room ListRoom Version: 6