about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/wamr/default.nix
blob: 12e9d8831d360c1428a88ba4a03d5b9f3e17498b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "wamr";
  version = "1.2.3";

  src = fetchFromGitHub {
    owner = "bytecodealliance";
    repo = "wasm-micro-runtime";
    rev = "WAMR-${finalAttrs.version}";
    hash = "sha256-bnia0ORC0YajO7I3XDMdpjlktDqOiXDlGcf12N1G+eg=";
  };

  nativeBuildInputs = [ cmake ];

  sourceRoot = "${finalAttrs.src.name}/product-mini/platforms/linux";

  meta = with lib; {
    description = "WebAssembly Micro Runtime";
    homepage = "https://github.com/bytecodealliance/wasm-micro-runtime";
    license = licenses.asl20;
    mainProgram = "iwasm";
    maintainers = with maintainers; [ ereslibre ];
    # TODO (ereslibre): this derivation should be improved to support
    # more platforms.
    broken = !stdenv.isLinux;
  };
})