diff options
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/wasmedge/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/tools/wasmedge/default.nix b/pkgs/development/tools/wasmedge/default.nix index 6f5d9162c5b7c..edcdf0d8c1e1d 100644 --- a/pkgs/development/tools/wasmedge/default.nix +++ b/pkgs/development/tools/wasmedge/default.nix @@ -5,6 +5,9 @@ , cmake , gtest , spdlog +, Foundation +, libxml2 +, libffi }: llvmPackages.stdenv.mkDerivation rec { @@ -18,6 +21,11 @@ llvmPackages.stdenv.mkDerivation rec { sha256 = "sha256-P2Y2WK6G8aEK1Q4hjrS9X+2WbOfy4brclB/+SWP5LTM="; }; + nativeBuildInputs = [ + cmake + llvmPackages.lld + ] ++ lib.optionals llvmPackages.stdenv.isDarwin [ Foundation ]; + buildInputs = [ boost spdlog @@ -31,7 +39,7 @@ llvmPackages.stdenv.mkDerivation rec { cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" "-DWASMEDGE_BUILD_TESTS=OFF" # Tests are downloaded using git - ]; + ] ++ lib.optional llvmPackages.stdenv.isDarwin "-DWASMEDGE_FORCE_DISABLE_LTO=ON"; meta = with lib; { homepage = "https://wasmedge.org/"; |