| 6 Nov 2023 |
matthewcroughan | something new to fix orjson that I was just trying out | 20:55:42 |
matthewcroughan | https://github.com/nix-community/poetry2nix/pull/1398 | 20:55:48 |
matthewcroughan | it's based on poetry2nix 2553decbc032504e968312cf0cb76964ca602035 so I think it's okay | 20:56:13 |
matthewcroughan | And with that, private gpt is finally packaged.. | 20:58:09 |
matthewcroughan | that took me forever. | 20:58:12 |
K900 | nix-repl> map (x: x.name) packages.x86_64-linux.chinatsu.passthru.python.pkgs.gradio-client.nativeBui
[ "python3-3.11.5" "wrap-python-hook" "ensure-newer-sources-hook" "python-remove-tests-dir-hook" "python-catch-conflicts-hook" "python-remove-bin-bytecode-hook" "pypa-build-hook.sh" "pypa-install-hook" "python-imports-check-hook.sh" "python-namespaces-hook.sh" "python-output-dist-hook" "python3.11-hatchling-1.18.0" "python3.11-hatch-requirements-txt-0.4.0" "python3.11-hatch-fancy-pypi-readme-23.1.0" "python3.11-hatchling-1.18.0" "python3.11-setuptools-68.2.2" ]
| 20:58:37 |
K900 | Can't reproduce here | 20:58:41 |
K900 | This is just a random poetry2nix package that definitely does not touch gradio | 20:58:50 |
K900 | As you can see, all the inputs are there | 20:59:06 |
matthewcroughan | in poetry2nix defaultPoetryOverrides.extend (self: super: {}) does super use Nixpkgs ? | 20:59:55 |
matthewcroughan | or is that before the overlay is applied? | 21:00:10 |
matthewcroughan | because if so, I've been using super, assuming it means before and after in the context of extended | 21:00:50 |
matthewcroughan | * because if so, I've been using super, assuming it means before and after in the context of just the extended ovelray | 21:01:08 |
matthewcroughan | * because if so, I've been using super, assuming it means before and after in the context of just the extended overlay | 21:01:11 |
matthewcroughan | * because if not, I've been using super, assuming it means before and after in the context of just the extended overlay | 21:01:23 |
K900 | super uses the entire overlay stack | 21:01:25 |
K900 | Which is like ten layers of overlays | 21:01:38 |
K900 | Your overlay is always applied last | 21:01:48 |
matthewcroughan | https://github.com/MatthewCroughan/privateGPT/blob/main/flake.nix#L30-L41 | 21:02:23 |
matthewcroughan | maybe you can see it from the code then, I'm not sure how to debug this | 21:02:30 |
matthewcroughan | my gradio-client and gradio overrides shouldn't need to exist, since the inputs.nixpkgs already has those nativeBuildInputs | 21:02:59 |
K900 | And what happens if you remove those? | 21:03:24 |
matthewcroughan | it'll crash saying that it doesn't have those nativeBuildInputs python3.11-gradio-client> hatchling.plugin.exceptions.UnknownPluginError: Unknown metadata hook: requirements_txt | 21:04:01 |
matthewcroughan | Also look at those vendored cargo.locks, there must be a way poetry2nix could use them automatically right? | 21:05:49 |
K900 | No | 21:06:06 |
K900 | That would be IFD | 21:06:10 |
matthewcroughan | not if you used builtins.fetchTarball for the fetching of the src right? | 21:06:27 |
K900 | That would just be banned in nixpkgs | 21:06:37 |
K900 | Just like IFD | 21:06:40 |
matthewcroughan | then src is an outPath with the cargo.lock in it | 21:06:40 |