Nix Rust | 675 Members | |
| Rust | 153 Servers |
| Sender | Message | Time |
|---|---|---|
| 4 Jun 2025 | ||
| Redacted or Malformed Event | 18:55:40 | |
Another smaller MWE demonstrating the (dis)utility of cargoHash, I can't understand how to use it. Apologies for the screenshot, I figured all 3 panes were relevant information | 18:55:40 | |
| Forgot the moderation bot did that | 18:56:53 | |
| Here's an (~month ttl) upload of the screenshot: http://p.krebsco.de/0fv815l | 18:59:14 | |
You can do cargoDeps = rustPlatform.fetchCargoVendor { src = newSrc; hash = ""; } | 18:59:20 | |
| As you can see in my previous message's screenshot, I tried that, to no avail. I commented it out after I got the required hash, because my end goal is to figure out how to find Here's the nix code copied in this time
| 19:02:40 | |
You don't set cargoHash at all in that case | 19:05:26 | |
You just override cargoDeps directly | 19:05:31 | |
Fine, I can accept that a workable override is to ignore cargoHash, and set cargoDeps as instructed. | 19:06:03 | |
How can I figure out what to set cargoHash to? | 19:06:22 | |
| You don't | 19:14:02 | |
You just set cargoDeps | 19:14:05 | |
cargoHash gets converted to cargoDeps internally | 19:14:17 | |
So if I want to author a buildRustPackage in nixpkgs, I don't set cargoHash, I set cargoDeps. That's what you're saying? In other words, all cargoHashes are something like technical debt pt? | 19:15:48 | |
| No | 19:16:13 | |
You can set cargoHash | 19:16:18 | |
But overrides set cargoDeps | 19:16:24 | |
| Because overriding is weird and jank | 19:16:30 | |
| Ahhh... I didn't find any reference (maybe I overlooked it) in https://nixos.org/manual/nixpkgs/unstable/#compiling-rust-applications-with-cargo. Good to know. Would you know of any discourse threads/github issues/other documentation explaining why this is so? | 19:21:34 | |
| 19:22:56 | ||
| Not off the top of my head | 19:24:19 | |
| It's stupid | 19:24:20 | |
| Fair! As always, thanks for your time and answers =) | 19:25:00 | |
| 20:03:36 | ||
| 6 Jun 2025 | ||
| 00:18:40 | ||
| 7 Jun 2025 | ||
| Any rust toolchain tech people can figure out what is the actual issue in? The comments including newest one are kinda confused? I posted a fix that fixed my issue on the thread tho. https://github.com/nix-community/fenix/issues/123 | 11:59:20 | |
| 14:22:30 | ||
| 22:01:42 | ||
| 22:20:48 | ||
| 8 Jun 2025 | ||
| 21:58:33 | ||