!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

663 Members
Rust148 Servers

Load older messages


SenderMessageTime
1 Jun 2025
@charles:computer.surgeryCharles what you should actually do is package the software with nix as usual and never use cargo install 00:52:47
@nickorta12:matrix.orgNick joined the room.01:39:49
@mjolnir:nixos.orgNixOS Moderation Bot unbanned @mightyiam:matrix.orgShahar "Dawn" Or.22:58:07
@jeancaspar:matrix.orgjeancaspar joined the room.23:33:14
@seanthw:matrix.orgSean Thawe joined the room.23:38:36
2 Jun 2025
@robert:scs.ems.hostRobert Rose changed their display name from Robert Rose (🏖️ -> 31.05 to Robert Rose.07:30:15
@mmkaram:matrix.orgmmkaramRedacted or Malformed Event08:47:16
@deeok:matrix.org@deeok:matrix.org joined the room.13:25:26
@skoove:catgirl.cloudskoove joined the room.21:17:06
3 Jun 2025
@tomasajt:matrix.orgTomahttps://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:matrix.orgSefodopo joined the room.01:31:07
@k900:0upti.meK900 Sending it 05:40:58
@tomasajt:matrix.orgTomaThank you :)10:14:34
@federicodschonborn:matrix.org@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:matrix.orgx10an14

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:matrix.orgx10an14 *that cargoHash is missing expects.. 15:25:01
@k900:0upti.meK900 Overrides are weird, you need to override cargoDeps 16:22:11
@x10an14:matrix.orgx10an14
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
@etehtsea:matrix.orgkis-kis joined the room.17:02:29
@k900:0upti.meK900
src = newSrc;
cargoDeps = old.cargoDeps.override {
    src = newSrc;
    hash = "";
}
17:06:04
@k900:0upti.meK900Should work17:06:05
@x10an14:matrix.orgx10an14 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:0upti.meK900You set it to an empty string, then let the build fial17:38:29
@k900:0upti.meK900* You set it to an empty string, then let the build fail17:38:31
@k900:0upti.meK900And it'll tell you what hash you got17:38:35
@k900:0upti.meK900That's how pretty much every complex FOD works17:38:51
@x10an14:matrix.orgx10an14What 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:matrix.orgx10an14

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:matrix.orgx10an14 And here's another one that says old.cargoDeps.override is missing!
https://paste.sr.ht/~x10an14/0306fe76b9bfde4e77d1e91b279a5234c7a57abb
18:28:12
@x10an14:matrix.orgx10an14 This package does implement finalAttrs 18:28:36

Show newer messages


Back to Room ListRoom Version: 6