biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / wasmi / default.nix
blob4af59590722a9b8a8afbf346916e18d6a4066180
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "wasmi";
8   version = "0.31.0";
10   src = fetchFromGitHub {
11     owner = "paritytech";
12     repo = "wasmi";
13     rev = "v${version}";
14     hash = "sha256-chLWrZ+OLUTSFmTu+qKpjApXDmJFhS68N2RKjaql75U=";
15     fetchSubmodules = true;
16   };
18   cargoLock = {
19     lockFile = ./Cargo.lock;
20   };
22   postPatch = ''
23     ln -s ${./Cargo.lock} Cargo.lock
24   '';
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   };