From 486f4297b74ab314ecaa04bf657bef61a2f75e46 Mon Sep 17 00:00:00 2001
From: Michael Davis <mcarsondavis@gmail.com>
Date: Tue, 4 Mar 2025 11:47:14 -0500
Subject: [PATCH] Set cargoLock.allowBuiltinFetchGit in Nix package

---
 default.nix | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/default.nix b/default.nix
index 0efa75bb..5020c406 100644
--- a/default.nix
+++ b/default.nix
@@ -38,7 +38,13 @@ in
   # hooked up. To get around this while having good customization, mkDerivation is
   # used instead.
   rustPlatform.buildRustPackage (self: {
-    cargoLock.lockFile = ./Cargo.lock;
+    cargoLock = {
+      lockFile = ./Cargo.lock;
+      # This is not allowed in nixpkgs but is very convenient here: it allows us to
+      # avoid specifying `outputHashes` here for any git dependencies we might take
+      # on temporarily.
+      allowBuiltinFetchGit = true;
+    };
 
     nativeBuildInputs = [
       installShellFiles