From patchwork Mon Jun 19 21:56:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 51080 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 40B4527BBEA; Mon, 19 Jun 2023 22:57:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1E73C27BBE2 for ; Mon, 19 Jun 2023 22:57:18 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBMrw-0006Tu-3W; Mon, 19 Jun 2023 17:57:04 -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 1qBMru-0006Tm-K5 for guix-patches@gnu.org; Mon, 19 Jun 2023 17:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBMru-0001yS-Bo for guix-patches@gnu.org; Mon, 19 Jun 2023 17:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBMrt-0005RK-QM for guix-patches@gnu.org; Mon, 19 Jun 2023 17:57:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64179] [PATCH] gnu: Add wasm-micro-runtime. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Jun 2023 21:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64179@debbugs.gnu.org Cc: Felix Lechner X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168721181620898 (code B ref -1); Mon, 19 Jun 2023 21:57:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jun 2023 21:56:56 +0000 Received: from localhost ([127.0.0.1]:57465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBMro-0005Qz-9K for submit@debbugs.gnu.org; Mon, 19 Jun 2023 17:56:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:48056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBMrl-0005Qr-Tn for submit@debbugs.gnu.org; Mon, 19 Jun 2023 17:56:54 -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 1qBMrl-0006TL-LU for guix-patches@gnu.org; Mon, 19 Jun 2023 17:56:53 -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 1qBMrj-0001sY-GY for guix-patches@gnu.org; Mon, 19 Jun 2023 17:56:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=uMLGTPD+75FbbhI 4cfX8VazVZL2+gCsn82dTyZna0qc=; h=date:subject:cc:to:from; d=lease-up.com; b=NfNLr8v/Llo9DbiLOk8zQJz4qW09aOiSiKKZMVNYXyKptLiFhNGk kWOg3u1BqU+T7OQlQWydvxVeT7/PSLnSpE8l/1HRYxmNktmxizvdTk39cfEqQ8NHvocYET PrfOHR435l8wp+U7qtgnfIIZWEo3UVp34BgULnKOMsa9JLthw= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 690ae29e (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Mon, 19 Jun 2023 21:56:44 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 052759d6; Mon, 19 Jun 2023 21:56:44 +0000 (UTC) Date: Mon, 19 Jun 2023 14:56:37 -0700 Message-Id: <5d862d14705443a7898adf814a8a647f22df6d2b.1687211787.git.felix.lechner@lease-up.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches X-Patchwork-Original-From: Felix Lechner via Guix-patches via From: Felix Lechner Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/web.scm (wasm-micro-runtime): New variable. --- gnu/packages/web.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) base-commit: d884fc9e2efecfba09af4694f5a13ad7fc6f704f diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index f5b6c8cd2f..cfd3ae2d30 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -62,6 +62,7 @@ ;;; Copyright © 2023 Paul A. Patience ;;; Copyright © 2022 Bruno Victal ;;; Copyright © 2023 David Thompson +;;; Copyright © 2023 Felix Lechner ;;; ;;; This file is part of GNU Guix. ;;; @@ -111,6 +112,7 @@ (define-module (gnu packages web) #:use-module (gnu packages bittorrent) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) + #:use-module (gnu packages ccache) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages cpp) @@ -1640,6 +1642,42 @@ (define-public wasm3 (description "WASM3 is a fast WebAssembly interpreter.") (license license:expat))) +(define-public wasm-micro-runtime + (package + (name "wasm-micro-runtime") + (version "1.2.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/bytecodealliance/wasm-micro-runtime") + (commit (string-append "WAMR-" version)))) + (file-name (git-file-name "WAMR" version)) + (sha256 + (base32 + "1mbwaj25798ilhg02447k3c2813xvxd70dwdlr4ha73xxbdgi54f")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'check) + (replace 'configure + (lambda _ + (chdir "product-mini/platforms/linux") + (mkdir-p "build") + (chdir "build") + (invoke "cmake" "--install-prefix" #$output "..")))))) + (native-inputs (list + ccache + gcc)) + (home-page "https://bytecodealliance.github.io/wamr.dev") + (synopsis "WebAssembly Micro Runtime") + (description "WebAssembly Micro Runtime (WAMR) is a lightweight standalone +WebAssembly (Wasm) runtime with small footprint, high performance and highly +configurable features for applications cross from embedded, IoT, edge to Trusted +Execution Environment (TEE), smart contract, cloud native and other features.") + (license license:asl2.0))) + (define-public websocketpp (package (name "websocketpp")