From patchwork Wed Sep 6 21:23:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Felix Lechner X-Patchwork-Id: 53619 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 53C9F27BBE2; Wed, 6 Sep 2023 22:26:24 +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=unavailable 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 1459B27BBE9 for ; Wed, 6 Sep 2023 22:26:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qe02E-0000ME-R3; Wed, 06 Sep 2023 17:26:03 -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 1qe02D-0000Lj-5n for guix-patches@gnu.org; Wed, 06 Sep 2023 17:26:01 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qe02C-00053P-U8 for guix-patches@gnu.org; Wed, 06 Sep 2023 17:26:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qe02D-0005Q9-V4 for guix-patches@gnu.org; Wed, 06 Sep 2023 17:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64179] [PATCH v2] gnu: Add wasm-micro-runtime. References: <5d862d14705443a7898adf814a8a647f22df6d2b.1687211787.git.felix.lechner@lease-up.com> In-Reply-To: <5d862d14705443a7898adf814a8a647f22df6d2b.1687211787.git.felix.lechner@lease-up.com> Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 21:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64179 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64179@debbugs.gnu.org Cc: Felix Lechner Received: via spool by 64179-submit@debbugs.gnu.org id=B64179.169403550120732 (code B ref 64179); Wed, 06 Sep 2023 21:26:01 +0000 Received: (at 64179) by debbugs.gnu.org; 6 Sep 2023 21:25:01 +0000 Received: from localhost ([127.0.0.1]:38039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qe01F-0005O9-4u for submit@debbugs.gnu.org; Wed, 06 Sep 2023 17:25:01 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:39950) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qe01A-0005Nu-5A for 64179@debbugs.gnu.org; Wed, 06 Sep 2023 17:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=kc5qRUcbDXRt7Bk vHoqhMoblCI4j51k42PaCs0DTjuY=; h=date:subject:cc:to:from; d=lease-up.com; b=K/DiFyXlQLaTXiDoefh5VVuglMxJVUwPkcHdswFOO5p6fr2VBBBp HzGPuN2BknIerA5ynYhXOnnJh8CaIh6f6lT9PQtvclev2AtdLd2YrRUByLSOWjtSNL4HFv rVjecgL4kQd6ZyNtjefP6ajp9b4mj4KjF4voQHqvtuILYkJBg= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 5bd9cabe (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Wed, 6 Sep 2023 21:24:52 +0000 (UTC) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c5babe7b; Wed, 6 Sep 2023 21:24:52 +0000 (UTC) Date: Wed, 6 Sep 2023 14:23:50 -0700 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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. --- Hi Maxim, The pointers were great. Everything worked. I also updated the version to 1.2.3. Thanks! Kind regards Felix gnu/packages/web.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) base-commit: 65dcfb3f3865d08467da747041263fd22460d393 diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 46a60b8b15..2379a68741 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -63,6 +63,7 @@ ;;; Copyright © 2022 Bruno Victal ;;; Copyright © 2023 David Thompson ;;; Copyright © 2023 Christopher Howard +;;; Copyright © 2023 Felix Lechner ;;; ;;; This file is part of GNU Guix. ;;; @@ -1709,6 +1710,36 @@ (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.3") + (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 + "1s7r8vfxixf737jp12cf7as68fd63lrmqdxj7fiqdla2wk89ly3f")))) + (build-system cmake-build-system) + (arguments + (list + #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "product-mini/platforms/linux")))))) + (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")