depot/third_party/nixpkgs/pkgs/development/tools/wasmi/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

34 lines
777 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "wasmi";
version = "0.30.0";
src = fetchFromGitHub {
owner = "paritytech";
repo = "wasmi";
rev = "v${version}";
hash = "sha256-0G/K61JP4SehhP+wD9uwCU1GRjzJdz4fkePv+IiqUY4=";
fetchSubmodules = true;
};
cargoLock = {
lockFile = ./Cargo.lock;
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
meta = with lib; {
description = "An efficient WebAssembly interpreter";
homepage = "https://github.com/paritytech/wasmi";
changelog = "https://github.com/paritytech/wasmi/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 mit ];
mainProgram = "wasmi_cli";
maintainers = with maintainers; [ dit7ya ];
};
}