build.nix: add instruction to keep cargoDeps hashes up-to-date

This commit is contained in:
Jörg Thalheim 2023-06-16 13:57:35 +02:00
parent 6a1ae0e91b
commit f9a366f9a6

View File

@ -51,6 +51,9 @@ in stdenv.mkDerivation {
];
cargoRoot = "rust-src";
# when git-based crates are updated, run:
# nix run github:Mic92/nix-update -- --version=skip --flake default
# to update the hashes
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src}/rust-src/Cargo.lock";
outputHashes = {