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 , cmake
, gtest , gtest
, spdlog , spdlog
, Foundation
, libxml2 , libxml2
, libffi , libffi
, Foundation
}: }:
llvmPackages.stdenv.mkDerivation rec { let
stdenv = llvmPackages.stdenv;
in
stdenv.mkDerivation rec {
pname = "wasmedge"; pname = "wasmedge";
version = "0.11.2"; version = "0.11.2";
@ -24,27 +27,31 @@ llvmPackages.stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
llvmPackages.lld llvmPackages.lld
] ++ lib.optionals llvmPackages.stdenv.isDarwin [ Foundation ]; ];
buildInputs = [ buildInputs = [
boost boost
spdlog spdlog
llvmPackages.llvm llvmPackages.llvm
libxml2
libffi
] ++ lib.optionals stdenv.isDarwin [
Foundation
]; ];
nativeBuildInputs = [ cmake llvmPackages.lld ];
nativeCheckInputs = [ gtest ];
cmakeFlags = [ cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_BUILD_TYPE=Release"
"-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git "-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; { meta = with lib; {
homepage = "https://wasmedge.org/"; homepage = "https://wasmedge.org/";
license = with licenses; [ asl20 ]; license = with licenses; [ asl20 ];
description = "A lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications"; description = "A lightweight, high-performance, and extensible WebAssembly runtime for cloud native, edge, and decentralized applications";
maintainers = with maintainers; [ dit7ya ]; maintainers = with maintainers; [ dit7ya ];
# error: no member named 'utimensat' in the global namespace
broken = stdenv.isDarwin && stdenv.isx86_64;
}; };
} }