default.nix: Use cargoLock.lockFile

Support for directly passing the Cargo.lock was added in
<https://github.com/NixOS/nixpkgs/pull/122158>.
This commit is contained in:
Zhaofeng Li 2021-08-26 13:21:18 -07:00
parent db563caad9
commit 886b4c9dea

View file

@ -21,7 +21,10 @@ in rustPlatform.buildRustPackage {
src = ./.;
};
};
cargoSha256 = "sha256-/108zjC937AX5HVTGfHD6DRh3abRdCWDXpOP1kIple0=";
cargoLock = {
lockFile = ./Cargo.lock;
};
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
mkdir completions