| 22 Nov 2024 |
adisbladis | In reply to @picog:matrix.org This link is 404 :( https://nix-community.github.io/pyproject.nix/build.html It moved https://pyproject-nix.github.io/pyproject.nix/build.html | 09:31:50 |
Pico | Ah, okay, several text links still point to the old one then.
For example the text in this example flake.nix
https://pyproject-nix.github.io/uv2nix/usage/hello-world.html | 09:34:18 |
adisbladis | In reply to @picog:matrix.org Ah, okay, several text links still point to the old one then. For example the text in this example flake.nix https://pyproject-nix.github.io/uv2nix/usage/hello-world.html Forgot some references. I've updated them. | 09:39:44 |
Pico | Awesome, thank you. | 09:46:42 |
| 24 Nov 2024 |
| @mlenz:matrix.org left the room. | 09:39:57 |
| 29 Nov 2024 |
| iwanb joined the room. | 19:25:28 |
| 3 Dec 2024 |
| @avianastra:beeper.com joined the room. | 10:27:45 |
@avianastra:beeper.com |  Download image.png | 10:31:34 |
@avianastra:beeper.com |  Download image.png | 10:31:35 |
@avianastra:beeper.com | Download flake.nix | 10:31:35 |
@avianastra:beeper.com | Download pyproject.toml | 10:31:35 |
@avianastra:beeper.com | Download I followed the instructions on
https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md#modulenotfounderror-no-module-named-packagename
And put "maturin" into the `package = [ "maturing" ];`, but no dice.
I simply ran `nix flake init --template github:nix-community/poetry2nix` and then inserted maturin with the poetry files that I have attached here as well. This is my first time setting up an environment with poetry2nix, and apart from this it has been incredibly magical | 10:31:35 |
truh | maybe you need to put polars = instead of package =. | 10:58:40 |
truh | Never used the template, I think it's implementing this https://github.com/nix-community/poetry2nix/blob/master/docs/edgecases.md?plain=1#L170 but with the requirements inlined | 10:59:59 |
@avianastra:beeper.com | Hmm, yea no difference, same output | 11:03:56 |
truh | ah seems like this one is worse than usual https://github.com/nix-community/poetry2nix/issues/1677 | 11:24:13 |
@avianastra:beeper.com | I looked for an issue like that, somehow didn't find it, thank you | 11:33:02 |
@avianastra:beeper.com | Okay so I could get it working with preferWheels = true, just like they suggest in that issue, I will roll with that for now even though it doesn't actually solve the root problem, it just circumvents it. Thanks! | 11:48:28 |
| 4 Dec 2024 |
| @mar.in:matrix.org left the room. | 17:39:03 |
| 5 Dec 2024 |
@fpletz:lodere.es | FYI if you are encountering build failures on latest unstable and 24.11 due to error: option --dist-info-dir not recognized https://github.com/NixOS/nixpkgs/pull/361930 | 01:46:10 |
| 6 Dec 2024 |
| @nebucatnetzer13:matrix.org joined the room. | 14:50:26 |
@nebucatnetzer13:matrix.org | Ah great thank you, I was completely lost on this one. | 14:51:14 |
@nebucatnetzer13:matrix.org | Just out of curiosity (I can easily wait until the PR is through), how would an override for this look like? I naively added wheel with poetry add but that doesn't work even even when I add it as a build dependency to a package. | 16:02:46 |
| 8 Dec 2024 |
@fpletz:lodere.es | In reply to @nebucatnetzer13:matrix.org Just out of curiosity (I can easily wait until the PR is through), how would an override for this look like? I naively added wheel with poetry add but that doesn't work even even when I add it as a build dependency to a package. I also linked that in the PR. Here is an example how to override it: https://github.com/fpletz/authentik-nix/commit/24907f67ee4850179e46c19ce89334568d2b05c6 Unfortunately not possible with the overrides attribute since wheel will be pulled in from nixpkgs. | 12:01:05 |
@nebucatnetzer13:matrix.org | In reply to @fpletz:lodere.es I also linked that in the PR. Here is an example how to override it: https://github.com/fpletz/authentik-nix/commit/24907f67ee4850179e46c19ce89334568d2b05c6 Unfortunately not possible with the overrides attribute since wheel will be pulled in from nixpkgs. Ah sorry I missed that as I went straight to the diff and then tried to do it myself 🙈.
Thank you for the link👍 | 14:39:00 |
| 9 Dec 2024 |
| @perchun:matrix.org joined the room. | 19:23:43 |
@perchun:matrix.org | hey, after recent update (I didnt update for a long time) I get this error
error:
… while evaluating the attribute 'drvPath'
at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/lib/customisation.nix:365:7:
364| in commonAttrs // {
365| drvPath = assert condition; drv.drvPath;
| ^
366| outPath = assert condition; drv.outPath;
… while evaluating 'strict' to select 'drvPath' on it
at «internal»:1:552:
(stack trace truncated; use '--show-trace' to show the full trace)
error: attribute 'optional-dependencies' missing
at /nix/store/avxvalb7xf8x4avmrbcvn1vr5yy46kxs-source/pkgs/development/python-modules/fastapi-cli/default.nix:31:8:
30| uvicorn
31| ] ++ uvicorn.optional-dependencies.standard;
| ^
32|
bisecting resulted into https://github.com/NixOS/nixpkgs/commit/03c1cedc3c6d9c95c834a8ddff2c03f82dd25ec2#diff-7283fe148b76f74489ff44bd0f7d731ddbffe539a51100b88824138867af1d15R31 which is not helpful at all
| 19:25:50 |
@perchun:matrix.org | how can I fix it? | 19:26:12 |
| 13 Dec 2024 |
| wren joined the room. | 23:33:56 |
| 14 Dec 2024 |
wren | yeah, we're getting this as well. I submitted a patch to nixpkgs that will hopefully fix this. | 02:10:40 |