-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdefault.nix
45 lines (38 loc) · 966 Bytes
/
default.nix
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
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, fetchFromGitHub
, llvmPackages
, boost
, cmake
, gtest
, spdlog
, pkgsStatic
}:
llvmPackages.stdenv.mkDerivation rec {
pname = "wasmedge";
version = "0.11.2";
src = fetchFromGitHub {
owner = "WasmEdge";
repo = "WasmEdge";
rev = version;
sha256 = "sha256-P2Y2WK6G8aEK1Q4hjrS9X+2WbOfy4brclB/+SWP5LTM=";
};
buildInputs = [
boost
spdlog
llvmPackages.llvm
pkgsStatic.openssl
];
nativeBuildInputs = [ cmake llvmPackages.lld ];
checkInputs = [ gtest ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
"-DWASMEDGE_PLUGIN_HTTPSREQ=ON"
];
meta = with lib; {
homepage = "https://wasmedge.org/";
license = with licenses; [ asl20 ];
description = "A lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications";
maintainers = with maintainers; [ dit7ya ];
};
}