Nix Rust | 678 Members | |
| Rust | 153 Servers |
| Sender | Message | Time |
|---|---|---|
| 2 Jun 2025 | ||
| Redacted or Malformed Event | 08:47:16 | |
| 13:25:26 | ||
| 21:17:06 | ||
| 3 Jun 2025 | ||
| https://github.com/NixOS/nixpkgs/pull/373541 Constantly fixing all the merge conflicts on this PR is getting tiring, I'd appreciate it if someone reviewed it and merged it. I have reduced the changes to not cause any rebuilds other than the docs. I intend to backport this. | 00:24:10 | |
| 01:31:07 | ||
| Sending it | 05:40:58 | |
| Thank you :) | 10:14:34 | |
| 22:43:03 | ||
| 4 Jun 2025 | ||
| After we replaced the Is this currently broken in Nixpkgs? Anyone got an example of a package this works for? I find this applies to me both with Examples being | 15:24:13 | |
*that cargoHash | 15:25:01 | |
Overrides are weird, you need to override cargoDeps | 16:22:11 | |
In reply to @k900:0upti.me I tried, even then I couldn't get a nix build to tell me the correct cargoHash. The only way I managed to update/edit source was to not set cargoHash, only cargoDeps.lockFile, and using callPackage. | 17:02:26 | |
| 17:02:29 | ||
| 17:06:04 | |
| Should work | 17:06:05 | |
That's how you set cargoHash? By not setting it? How do those who've set it in nixpkgs figured out which hash to set? | 17:33:19 | |
| You set it to an empty string, then let the build fial | 17:38:29 | |
| * You set it to an empty string, then let the build fail | 17:38:31 | |
| And it'll tell you what hash you got | 17:38:35 | |
| That's how pretty much every complex FOD works | 17:38:51 | |
| What I've been trying to say, from my original message of today, is that I get the error, but not the correct hash. Allow me to demonstrate with paste I have to prepare... | 18:02:13 | |
| https://paste.sr.ht/~x10an14/c7aaeba875e9d1f3c85253582c91f6463a9a9f7d That package doens't have | 18:16:49 | |
And here's another one that says old.cargoDeps.override is missing!https://paste.sr.ht/~x10an14/0306fe76b9bfde4e77d1e91b279a5234c7a57abb | 18:28:12 | |
This package does implement finalAttrs | 18:28:36 | |
| 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 | |