fixsha

Crates.iofixsha
lib.rsfixsha
version0.1.0
created_at2026-01-20 23:45:32.147938+00
updated_at2026-01-20 23:45:32.147938+00
descriptionA utility to automatically update Nix cargoHash values by building derivations and parsing the output.
homepagehttps://github.com/cachebag/fixsha
repositoryhttps://github.com/cachebag/fixsha
max_upload_size
id2057861
size31,045
akrm (cachebag)

documentation

README

fixsha

Hook to automatically build a Nix derivation, detect if cargoHash was changed and update package.nix accordingly.

I know this exists somewhere but it took me less time to build a solution for my needs than to use the convuluted mess that's offered elsewhere.

Install

cargo install fixsha

Usage

This assumes that your projects root has a default.nix and package.nix:

fixsha

License

MIT OR Apache-2.0, your choice.

Commit count: 8

cargo fmt