| 1 Jun 2025 |
Charles | what you should actually do is package the software with nix as usual and never use cargo install | 00:52:47 |
| Nick joined the room. | 01:39:49 |
| NixOS Moderation Bot unbanned Shahar "Dawn" Or. | 22:58:07 |
| jeancaspar joined the room. | 23:33:14 |
| Sean Thawe joined the room. | 23:38:36 |
| 2 Jun 2025 |
| Robert Rose changed their display name from Robert Rose (🏖️ -> 31.05 to Robert Rose. | 07:30:15 |
mmkaram | Redacted or Malformed Event | 08:47:16 |
| @deeok:matrix.org joined the room. | 13:25:26 |
| skoove joined the room. | 21:17:06 |
| 3 Jun 2025 |
Toma | 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 |
| Sefodopo joined the room. | 01:31:07 |
K900 | Sending it | 05:40:58 |
Toma | Thank you :) | 10:14:34 |
| @federicodschonborn:matrix.org changed their display name from LEGO® Worm™ (Now Only 1 krad!) to LEGO® Worm™ (he/they) (Happy Pride Month! 🏳️🌈). | 22:43:03 |
| 4 Jun 2025 |
x10an14 | After we replaced the Cargo.lock files in nixpkgs with cargoHash, I've not come across any package that actually prints out the correct hash that cargoHash is missing if I replace src.rev (or just source in general).
Is this currently broken in Nixpkgs? Anyone got an example of a package this works for? I find this applies to me both with callPackage and overrideAttrs.
Examples being thumbs, nufmt, and even kickoff (which does implement finalAttrs)
| 15:24:13 |
x10an14 | *that cargoHash is missing expects.. | 15:25:01 |
K900 | Overrides are weird, you need to override cargoDeps | 16:22:11 |
x10an14 | In reply to @k900:0upti.me Overrides are weird, you need to override cargoDeps 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 |
| kis-kis joined the room. | 17:02:29 |
K900 | src = newSrc;
cargoDeps = old.cargoDeps.override {
src = newSrc;
hash = "";
}
| 17:06:04 |
K900 | Should work | 17:06:05 |
x10an14 | 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 |
K900 | You set it to an empty string, then let the build fial | 17:38:29 |
K900 | * You set it to an empty string, then let the build fail | 17:38:31 |
K900 | And it'll tell you what hash you got | 17:38:35 |
K900 | That's how pretty much every complex FOD works | 17:38:51 |
x10an14 | 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 |
x10an14 | https://paste.sr.ht/~x10an14/c7aaeba875e9d1f3c85253582c91f6463a9a9f7d
That package doens't have cargoDeps set though, so I'm gonna try the same w/kickoff
| 18:16:49 |
x10an14 | And here's another one that says old.cargoDeps.override is missing! https://paste.sr.ht/~x10an14/0306fe76b9bfde4e77d1e91b279a5234c7a57abb | 18:28:12 |
x10an14 | This package does implement finalAttrs | 18:28:36 |