| 22 Apr 2024 |
@malteneuss:matrix.org | Ah i just found this dedicated room. At my company we are trying out Nix with our Python services and a few people are struggling with some areas of poetry2nix. That's why i decided to improve the documentation: K900 Do you who know i can ping for some documentation improvement MRs for poetry2nix like https://github.com/nix-community/poetry2nix/pull/1600 Maybe you? adisbladis seems to be busy, and i couldn't find any other listed maintainer. | 06:23:59 |
matthewcroughan | This should probably get a merge https://github.com/nix-community/poetry2nix/pull/1600 | 20:13:57 |
matthewcroughan | Actually, this code doesn't work in flakes. | 21:34:36 |
matthewcroughan | https://github.com/nix-community/poetry2nix/blob/master/vendor/pyproject.nix/fetchers/default.nix#L112-L116 | 21:34:50 |
matthewcroughan | pathParts = filter ({ prefix, path }: "NETRC" == prefix) nixPath; # deadnix: skip
netrc_file =
if (pathParts != [ ])
then (head pathParts).path
else "";
| 21:34:59 |
matthewcroughan | netrc_file is always "" because nixPath is always [] in pure-eval | 21:35:17 |
| @niklauzg:matrix.org left the room. | 23:53:48 |
| 23 Apr 2024 |
| nim65s changed their display name from Guilhem to nim65s. | 07:52:33 |
truh | Does it need to be that strict in fixed output derivations? Private git repos work too. | 09:49:56 |
@malteneuss:matrix.org | In reply to @matthewcroughan:defenestrate.it
netrc_file is always "" because nixPath is always [] in pure-eval Thanks for the feedback. The Nix flake variant indeed was missing in my PR. I added a few paragraphs how to add env vars to the nix-daemon (i think this is the only working way for flakes). Could you take a look again?
btw, thanks for your awesome talks on Nix for Docker (the main reason my company is willing to try Nix) and for Riscv.
| 19:55:13 |
@malteneuss:matrix.org | In reply to @truh:matrix.org Does it need to be that strict in fixed output derivations? Private git repos work too. According to my current understanding the correct way is to not let code inside the sandbox fetch things with credentials (due to security concerns) but let nix do that outside of the sandbox. I think there are some special builtins.fetchers that can take care of that. I may take a look at this once our Python backend services run with poetry2nix and Docker. | 19:59:28 |