Poetry2nix | 327 Members | |
| https://github.com/nix-community/poetry2nix | 63 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Aug 2022 | ||
| That does not look right | 14:25:28 | |
| How are you building it exactly? | 14:25:36 | |
| 14:25:51 | |
| I'm using flakes | 14:25:54 | |
| I can throw together a minimal repro real quick | 14:26:16 | |
| I may have identified an issue (if not the issue) | 14:32:19 | |
Ok I think I am past the /homeless-shelter issue -- I was not probably linking the tensorstore.nix override in my flake.nix. | 14:34:48 | |
| I'm running into a different issue relating to tensorstore, but I don't want to monopolize this channel. | 14:35:13 | |
| I can work on it a bit and if I can't figure it out, I'll check back in, if that's alright. | 14:35:30 | |
| Is it possible to apply git patches to source code, as in
| 14:48:36 | |
| Yes | 14:48:53 | |
| Is this the format that is expected for a patch?
| 14:50:06 | |
I produced that with git diff > /path/to/tensorstore.patch | 14:50:30 | |
| I'm a little new to patch files -- and to nix, so thank you for all your help! | 14:50:55 | |
| Generally yes | 14:51:00 | |
| Where can I store these patch files? I'm getting
| 14:56:00 | |
| You need to add it to git | 14:56:12 | |
| For it to work | 14:56:14 | |
| Perfect! That worked. Thank you. | 14:56:35 | |
I am not 100% sure this is a nix issue but tensorstore/bazelisk.py seems to be trying to download bazel right here: https://github.com/google/tensorstore/blob/fd14f04c33620645da94667c4fa860b258417dcf/bazelisk.py#L449 | 15:08:28 | |
| We then get this error:
| 15:09:10 | |
| That is normal, the build sandbox has no network | 15:09:18 | |
| Right ok that makes sense | 15:09:27 | |
| So in that case, would it be best to write a patch that uses the nix bazel instead of downloading a new one? | 15:09:55 | |
| Can you tell it to use an existing copy of bazel somehow? | 15:10:03 | |
| Let me play around with it. Should be possible. Thanks. | 15:10:25 | |
| We have a bazel in nixpkgs | 15:10:49 | |
If I were to write a patch that points to that bazel instead, how would I get the /nix/store/.../bazel path? | 15:11:32 | |
${bazel}/bin/bazel | 15:11:59 | |
| But you can't do that in the patch | 15:12:05 | |