depot/third_party/nixpkgs/pkgs/development/tools/wasmedge/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

42 lines
894 B
Nix

{ lib
, fetchFromGitHub
, llvmPackages
, boost
, cmake
, gtest
, spdlog
}:
llvmPackages.stdenv.mkDerivation rec {
pname = "wasmedge";
version = "0.11.0";
src = fetchFromGitHub {
owner = "WasmEdge";
repo = "WasmEdge";
rev = version;
sha256 = "sha256-4w9+3hp1GVLx2dOTDXlUOH6FgK1jvkt12wXs4/S9UlI=";
};
buildInputs = [
boost
spdlog
llvmPackages.llvm
];
nativeBuildInputs = [ cmake llvmPackages.lld ];
checkInputs = [ gtest ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
];
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 ];
};
}