From f9a366f9a6ba7bab23c4095a43228b7f58feffd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@thalheim.io>
Date: Fri, 16 Jun 2023 13:57:35 +0200
Subject: [PATCH] build.nix: add instruction to keep cargoDeps hashes
 up-to-date

---
 build.nix | 3 +++
 1 file changed, 3 insertions(+)

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 = {