Nix Rust | 704 Members | |
| Rust | 158 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Feb 2025 | ||
anyways, I wish crate2nix had better hooks for overriding aspects of the build en-mass. I already had to do something similar to add custom filtering to src. I just discovered a very long comment to myself explaining why its not as simple as it seems since we also want to propagate through invocations of override | 05:06:30 | |
| 13:03:24 | ||
| Hello. How am I supposed to use
and I am getting an error that says
The package is just something like
| 15:38:38 | |
| * Hello. How am I supposed to use
and I am getting an error that says
The package is just something like
| 15:38:59 | |
| And I can't use the debugger cause it just segfaults upon hitting any breakpoints 🥲 | 15:40:45 | |
| Stupid mistake #2 this week. Ignore the above. 🥲 | 19:00:52 | |
| 12 Feb 2025 | ||
| 00:02:06 | ||
| Hey, I was not able to find how to specify build features when using Maturin. I tried buildFeatures but it didn't propagate into maturin's flags. | 08:58:02 | |
Seems like the best way is maturinBuildFlags. | 09:45:14 | |
| 19:59:40 | ||
when using rustPlatform.buildRustPackage, is there a way to set the version in nix automatically from the cargo lock file? | 20:36:07 | |
| Do you mean something like that? https://github.com/dd-ix/sflow_exporter/blob/main/package.nix#L8 | 20:36:39 | |
| ah, that looks good, let me try it | 20:37:06 | |
In reply to @marcel:envs.netyep, that works perfectly! | 20:38:21 | |
| now to do the same thing on nodejs, thats far simpler, but also basically identical to the above! | 20:46:50 | |
manifest = pkgs.lib.importJSON ./package.json; and done! | 20:48:54 | |
| 13 Feb 2025 | ||
| Niklas Korz Alyssa Ross do you have any idea how I can myself bring the mitmproxy update forward? My rust compiler building skills are not enough to implement what you suggested above... | 14:28:37 | |
| The issue still hasn't really been properly reported upstream | 14:31:36 | |
| Only in a comment | 14:31:38 | |
| So I think the next step would be to properly report the issue upstream | 14:31:54 | |
| but ultimately rustc's build system needs to be fixed by someone | 14:32:06 | |
| there's not even anything in the compiler that needs to be fixed, just its build system | 14:32:36 | |
In reply to @qyliss:fairydust.spaceYeah I still haven't quite understood what needs to be fixed unfortunately | 14:35:59 | |
| I digged through the docs part of the build chain and that seemed to have handling for no std targets already | 14:36:21 | |
| * I digged through the docs part of the build chain and that seemed to have handling for no_std targets already | 14:36:38 | |
| But I might have been looking in the wrong corner of rustc | 14:36:59 | |
| IIRC the problem was that it didn't accomodate the possibility that you'd be building std and no_std targets at the same time. | 14:37:22 | |
Alyssa Ross: does this look like anything familiar? https://hydra.nixos.org/build/288008080/nixlog/1 looks like it broke when the useFetchCargoVendor cycle landed | 14:38:20 | |
| (going to investigate myself at some point since I theoretically maintain it, but maybe it's something obvious/known) | 14:38:39 | |
| cc Toma | 14:38:51 | |