aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2023-06-16 13:57:35 +0200
committerJörg Thalheim <joerg@thalheim.io>2023-06-16 14:02:17 +0200
commitf9a366f9a6ba7bab23c4095a43228b7f58feffd3 (patch)
treec50daed4b766db3e8802c73e2911103c1d397399
parent6a1ae0e91b7f17d272f346f6200c89073ea2ce4f (diff)
downloadbcachefs-tools-f9a366f9a6ba7bab23c4095a43228b7f58feffd3.tar.gz
build.nix: add instruction to keep cargoDeps hashes up-to-date
-rw-r--r--build.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.nix b/build.nix
index efb5d735..5cf07de2 100644
--- a/build.nix
+++ b/build.nix
@@ -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 = {