| Crates.io | fixsha |
| lib.rs | fixsha |
| version | 0.1.0 |
| created_at | 2026-01-20 23:45:32.147938+00 |
| updated_at | 2026-01-20 23:45:32.147938+00 |
| description | A utility to automatically update Nix cargoHash values by building derivations and parsing the output. |
| homepage | https://github.com/cachebag/fixsha |
| repository | https://github.com/cachebag/fixsha |
| max_upload_size | |
| id | 2057861 |
| size | 31,045 |
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.
cargo install fixsha
This assumes that your projects root has a default.nix and package.nix:
fixsha
MIT OR Apache-2.0, your choice.