Nix Rust | 682 Members | |
| Rust | 156 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 May 2025 | ||
| * It's not really clear to me what exactly you're trying to achieve. You have two unrelated git repos with unrelated rust projects and you want to tie them together in a third repository with nix code? | 18:23:07 | |
| 19:26:25 | ||
| 20:09:25 | ||
Managed to get some tips on one of Rust discords, so feel a bit unstuck there, hopefully that sticks. For the latter, yeah, kind of. To maybe make this more concrete, I want to try to work on building Android with dynamic derivations — so there's nix-ninja, which uses n2, a ninja successor in Rust and possibly I will need to make some improvements to crates it uses (e.g. the memmap2 crate) and ultimately there will be some nix code, that uses all this to build Android incrementally with nix. The nix part will use nix-ninja, that's pretty simple, just export the binary under packages and use that in the nix code, but it will in turn use n2 as a library and similarly for any dependencies I want to improve. I don't control any of that code (except whatever nix I will write) and I hope to be able to upstream as much as possible, so I want to avoid making any changes to the repos that won't be upstreamable and I'd have to rebase over and over again to keep them. Not too fond of having to keep pushing my changes to a repo, instead of working with them locally either. Which is why I thought I could try to leverage nix to somehow tie them together in a meta workspace of sorts, but so far I haven't seen an easy way to tell crane "see, this crate that I have in a git submodule at repos/n2 wants to use memmap2 from there, but can you instead inject a crate built from repos/memmap2 you have locally?". Hopefully that makes more sense now? | 20:40:22 | |
| 23:18:16 | ||
| 3 May 2025 | ||
| 18:19:13 | ||
| 19:22:35 | ||
| 4 May 2025 | ||
| 15:42:02 | ||
| 19:24:19 | ||
| 23:18:43 | ||
| 5 May 2025 | ||
| 20:48:53 | ||
| 6 May 2025 | ||
| I seem to sometimes get random rust errors building my code inside a Nix flake using Crane. Every attempt to build I get a different error in a different Cargo dependency until it eventually "just works". rustc compiler panics are a regular thing. As is E0080 errors (in random places). Then on my next attempt it compiled successfully like there was nothing ever wrong. Any ideas? I still have the screen logs, but it just seems so random. Although errors in js-sys and icu_provider are common. It is more likely to build in the original flake, as opposed to another flake which uses the first flake as an input. Once it builds the second flake can use the cached copy. This is using rust 1.86.0 and using nix 24.11 | 03:19:24 | |
| * I seem to sometimes get random rust errors building my code inside a Nix flake using Crane. Every attempt to build I get a different error in a different Cargo dependency until it eventually "just works". rustc compiler panics are a regular thing. Also E0080 errors (in random places). Then on my next attempt it compiled successfully like there was nothing ever wrong. Any ideas? I still have the screen logs, but it just seems so random. Although errors in js-sys and icu_provider are common. It is more likely to build in the original flake, as opposed to another flake which uses the first flake as an input. Once it builds the second flake can use the cached copy. This is using rust 1.86.0 and using nix 24.11 | 03:20:31 | |
| oom? | 05:28:42 | |
| That is a theory I had. But I suspect that is extremely unlikely on this machine with 128GB ram :-)
| 05:34:21 | |
| how big is the tmp directory? | 05:34:55 | |
Think that should be fine. Unless I missed something. It is zfs. Hmm. Wonder if that could be significant. Didn't think of that. | 05:35:49 | |
| Could someone invite me to #users:nixos.org please? | 08:38:35 | |
| I'm annoyed because I cannot join :( | 08:38:53 | |
| 09:13:23 | ||
| Done | 09:16:33 | |
| I would also like an invite please. Why was it made invite only? | 09:34:57 | |
| sent you an invite, because of spam attacks | 09:36:28 | |
| thank you | 09:36:51 | |
| 22:56:36 | ||
| 7 May 2025 | ||
| 08:26:32 | ||
| 21:42:54 | ||
| 8 May 2025 | ||
| 05:28:48 | ||
| 08:57:55 | ||
| 08:58:02 | ||