mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
35 lines
777 B
Nix
35 lines
777 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "wasmi";
|
|
version = "0.31.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "paritytech";
|
|
repo = "wasmi";
|
|
rev = "v${version}";
|
|
hash = "sha256-chLWrZ+OLUTSFmTu+qKpjApXDmJFhS68N2RKjaql75U=";
|
|
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 ];
|
|
};
|
|
}
|