Skip to content

Commit

Permalink
Set cargoLock.allowBuiltinFetchGit in Nix package
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Mar 4, 2025
1 parent 28e69f0 commit 486f429
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 486f429

Please sign in to comment.