at 24.11-pre 34 lines 777 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "wasmi"; 8 version = "0.31.0"; 9 10 src = fetchFromGitHub { 11 owner = "paritytech"; 12 repo = "wasmi"; 13 rev = "v${version}"; 14 hash = "sha256-chLWrZ+OLUTSFmTu+qKpjApXDmJFhS68N2RKjaql75U="; 15 fetchSubmodules = true; 16 }; 17 18 cargoLock = { 19 lockFile = ./Cargo.lock; 20 }; 21 22 postPatch = '' 23 ln -s ${./Cargo.lock} Cargo.lock 24 ''; 25 26 meta = with lib; { 27 description = "An efficient WebAssembly interpreter"; 28 homepage = "https://github.com/paritytech/wasmi"; 29 changelog = "https://github.com/paritytech/wasmi/blob/${src.rev}/CHANGELOG.md"; 30 license = with licenses; [ asl20 mit ]; 31 mainProgram = "wasmi_cli"; 32 maintainers = with maintainers; [ dit7ya ]; 33 }; 34}