From 4f597e62e27cacadf89f3ca2c56a3cced4cf4dc6 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 14 Jan 2023 23:55:10 -0700 Subject: [PATCH] package.nix: Use cargoLock --- package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.nix b/package.nix index 3710525..bc3c53f 100644 --- a/package.nix +++ b/package.nix @@ -42,7 +42,10 @@ in rustPlatform.buildRustPackage rec { SystemConfiguration ]); - cargoHash = "sha256-FpA7dbK/3+cW53bSP27ylxBZSIUzBNXpuEBz4mJNZ8g="; + cargoLock = { + lockFile = ./Cargo.lock; + allowBuiltinFetchGit = true; + }; cargoBuildFlags = lib.concatMapStrings (c: "-p ${c} ") crates; ATTIC_DISTRIBUTOR = "attic";