nixpkgs/pkgs/development/tools/wasmedge/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, llvmPackages
, boost
, cmake
, gtest
, spdlog
2022-12-27 00:10:22 +00:00
, libxml2
, libffi
2023-02-04 05:02:07 +00:00
, Foundation
}:
2023-02-04 05:02:07 +00:00
let
stdenv = llvmPackages.stdenv;
in
stdenv.mkDerivation rec {
pname = "wasmedge";
2022-11-05 06:04:22 +00:00
version = "0.11.2";
src = fetchFromGitHub {
owner = "WasmEdge";
repo = "WasmEdge";
rev = version;
2022-11-05 06:04:22 +00:00
sha256 = "sha256-P2Y2WK6G8aEK1Q4hjrS9X+2WbOfy4brclB/+SWP5LTM=";
};
2022-12-27 00:10:22 +00:00
nativeBuildInputs = [
cmake
llvmPackages.lld
2023-02-04 05:02:07 +00:00
];
2022-12-27 00:10:22 +00:00
buildInputs = [
boost
spdlog
llvmPackages.llvm
2023-02-04 05:02:07 +00:00
libxml2
libffi
] ++ lib.optionals stdenv.isDarwin [
Foundation
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
2023-02-04 05:02:07 +00:00
] ++ lib.optionals stdenv.isDarwin [
"-DWASMEDGE_FORCE_DISABLE_LTO=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 ];
2023-02-04 05:02:07 +00:00
# error: no member named 'utimensat' in the global namespace
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}