matrix-sdk-crypto-nodejs: convert cargoDeps to importCargoLock

This commit is contained in:
Lin Yinfeng 2023-03-31 14:49:26 +08:00
parent 2869364b9b
commit 53a639594f
No known key found for this signature in database
GPG Key ID: 46947CB61521FC42
2 changed files with 5569 additions and 4 deletions

File diff suppressed because it is too large Load Diff

View File

@ -17,10 +17,11 @@ stdenv.mkDerivation rec {
./remove-duplicate-dependency.patch
];
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src patches;
name = "${pname}-${version}";
hash = "sha256-ZvoWdcutMnotwapFRZlvZQaebpEKarzCR2Fh5xOGluw=";
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"uniffi-0.21.0" = "sha256-blKCfCsSNtr8NtO7Let7VJ/9oGuW9Eu8j9A6/oHUcP0=";
};
};
nativeBuildInputs = [