Unverified Commit b32e0e12 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

wasmi: 0.31.0 -> 0.40.0, useFetchCargoVendor, use nix-update-script (#380477)

parents 41e1ceac c0bde802
Loading
Loading
Loading
Loading

pkgs/by-name/wa/wasmi/Cargo.lock

deleted100644 → 0
+0 −1439

File deleted.

Preview size limit exceeded, changes collapsed.

+7 −10
Original line number Diff line number Diff line
@@ -2,27 +2,24 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
  pname = "wasmi";
  version = "0.31.0";
  version = "0.40.0";

  src = fetchFromGitHub {
    owner = "paritytech";
    repo = "wasmi";
    rev = "v${version}";
    hash = "sha256-chLWrZ+OLUTSFmTu+qKpjApXDmJFhS68N2RKjaql75U=";
    tag = "v${version}";
    hash = "sha256-O+8qBYxmiDQtmL2ThkQYenIXSf2wCoYFqLMJOtLP3Ic=";
    fetchSubmodules = true;
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
  };

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';
  useFetchCargoVendor = true;
  cargoHash = "sha256-b3mjGjOfIBHcQTIpA2obdCsjC1p0gjfatKmYI01vYME=";
  passthru.updateScript = nix-update-script { };

  meta = with lib; {
    description = "Efficient WebAssembly interpreter";