!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

683 Members
Rust156 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
3 Jun 2025
@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

Show newer messages


Back to Room ListRoom Version: 6