From unknown Tue Jun 24 05:14:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#64319] [PATCH] gnu: Add wasmedge. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 27 Jun 2023 19:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64319 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64319@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16878938434069 (code B ref -1); Tue, 27 Jun 2023 19:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2023 19:24:03 +0000 Received: from localhost ([127.0.0.1]:49542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEEIE-00013Z-Pu for submit@debbugs.gnu.org; Tue, 27 Jun 2023 15:24:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:42988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEEI9-000135-FU for submit@debbugs.gnu.org; Tue, 27 Jun 2023 15:24:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qEEI9-0007iw-9G for guix-patches@gnu.org; Tue, 27 Jun 2023 15:23:57 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qEEI6-0005IZ-GS for guix-patches@gnu.org; Tue, 27 Jun 2023 15:23:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=vUfsgvQm2OJgrem rhv8R4wX0vYjB+QCtBpPX1wJ4zic=; h=date:subject:cc:to:from; d=lease-up.com; b=JtoRFJpavcxQ9wRGmeJIIF4PZGCpW9in4Rm15+9cIEXfakvSfFSP n5ygDfUC+KpVltG6qkaJggFkceXpQLBG8PGGSpHvyBPdfUrHHRYb0lJ3DXhJo+nYvyVif4 GHzOwiWxma37qNUR7B5rMUSpKfKBUZDWhF34jcDkk10Vq4Lks= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 0706f49b (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Tue, 27 Jun 2023 19:23:48 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id f097ed88; Tue, 27 Jun 2023 19:23:47 +0000 (UTC) From: Felix Lechner Date: Tue, 27 Jun 2023 12:23:43 -0700 Message-Id: <676b37f167fe09ae7c6834629bd3cc1ad0811a49.1687893815.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@us-core.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, UNPARSEABLE_RELAY=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) This is a project of the Linux Foundation. * gnu/packages/web.scm (wasmedge): New variable. --- gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3c50864cf4..156a0f0cd7 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -156,6 +156,8 @@ (define-module (gnu packages web) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages lisp-xyz) + #:use-module (gnu packages llvm) + #:use-module (gnu packages logging) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) #:use-module (gnu packages mail) @@ -1593,6 +1595,42 @@ (define-public wabt other systems that want to manipulate WebAssembly files.") (license license:asl2.0))) +(define-public wasmedge + (package + (name "wasmedge") + (version "0.12.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WasmEdge/WasmEdge") + (commit version))) + (file-name (git-file-name "WasmEdge" version)) + (sha256 + (base32 + "0h3m60gk02a9ws6x96f1b7wkcihi9r1690akh55qnizg93vrl5m4")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:configure-flags + ;; our LLVM version seems to cause: compiler.cpp:4919:3: + ;; error: too few arguments to function call, expected 5, have 4 + #~(list "-DWASMEDGE_BUILD_AOT_RUNTIME=OFF"))) + (native-inputs (list + boost + clang + lld + spdlog)) + (home-page "https://wasmedge.org/") + (synopsis "Cloud Native Computing Foundations's WebAssembly runtime") + (description "WasmEdge is a lightweight, high-performance, and extensible +WebAssembly runtime for cloud native, edge, and decentralized applications. +It powers serverless apps, embedded functions, microservices, smart contracts, +and IoT devices. + +This is a Linux Foundation project, via the Cloud Native Computing Foundation.") + (license license:asl2.0))) + (define-public wasm3 (package (name "wasm3") base-commit: ac86174e22fcd762893bd4515786b1376af9397b -- 2.40.1