wasmedge: reformat

This commit is contained in:
Weijia Wang 2023-02-04 06:02:07 +01:00
parent e6bbd91153
commit f3c7172a2d

View file

@ -5,12 +5,15 @@
, cmake
, gtest
, spdlog
, Foundation
, libxml2
, libffi
, Foundation
}:
llvmPackages.stdenv.mkDerivation rec {
let
stdenv = llvmPackages.stdenv;
in
stdenv.mkDerivation rec {
pname = "wasmedge";
version = "0.11.2";
@ -24,27 +27,31 @@ llvmPackages.stdenv.mkDerivation rec {
nativeBuildInputs = [
cmake
llvmPackages.lld
] ++ lib.optionals llvmPackages.stdenv.isDarwin [ Foundation ];
];
buildInputs = [
boost
spdlog
llvmPackages.llvm
libxml2
libffi
] ++ lib.optionals stdenv.isDarwin [
Foundation
];
nativeBuildInputs = [ cmake llvmPackages.lld ];
nativeCheckInputs = [ gtest ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git
] ++ lib.optional llvmPackages.stdenv.isDarwin "-DWASMEDGE_FORCE_DISABLE_LTO=ON";
] ++ 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 ];
# error: no member named 'utimensat' in the global namespace
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}