Unnamed repository; edit this file 'description' to name the repository.
Set cargoLock.allowBuiltinFetchGit in Nix package
Michael Davis 12 months ago
parent 28e69f0 · commit 486f429
-rw-r--r--default.nix8
1 files changed, 7 insertions, 1 deletions
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