From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id kIbZD9P74mVDDwAA62LTzQ:P1 (envelope-from ) for ; Sat, 02 Mar 2024 11:13:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kIbZD9P74mVDDwAA62LTzQ (envelope-from ) for ; Sat, 02 Mar 2024 11:13:39 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1709374419; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=SAVJbUkpx3INUjJo+QvLXWIkRavbWYI5acteKzJETQ4=; b=J4uAlEeTOHZ2GHdUKLL/D6lo02M4bWi2FvD+hKr+fdFSp2S0as+SeNh2QYbwHrRv/9HOu/ qyCsrNybUs2HD3zI6hsMZqye7Q8VCY/zP4nMyItTLn8wNp+kETKWUXeJvcwSz0JSaOC0K7 XuSTTE7ylJAhySDE+dbDfmJeFo/kDN+yr7hiR3c+QJrLcTQ3yKmdzi6a+IcGjRq+Hxnpwv qowGJq76WBp44nyOGtuyLb1wWSFBEugbFbqK60ayMXRlEGT+ypbGw4/z8JNo84Pbzg+hEk EokVsxNKTADbNc89cNt1hTreQtuev67eUlbYcMejw4NpqSLne4nrC4WrOmF8SA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709374419; a=rsa-sha256; cv=none; b=hG54Jx7EGhZdOj6frWHQvEpZVshHDFMbELy5eBHQMk4rZBscdd6zI/bC8PGYq/tGSz9Yxu NsWp5cs/NtWQn7lCuZfRpUaMmkEZMC8StJe0TuHhCBpNtQY6ChEQ44U+Wfzwv5OakrP1H7 Dh+owwPopgyGK/cZ2i7ilkqfbyPPcejOUUWAGOR1tR5jm5oS/hHDtbotES6OWCGaB7dH1i MGBI9g7dZjUjaC+JaWdNm5EvpfASUmhrJPKHfRr4haQR8frHq3Fa/EuTWzlWUXl1SiC6Cu HMST7OW72xwjydJ2nxMyoRLsDUuOmDi/NERKMUzM2Zcg9CZ1j7YSW1ScjYHJyQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DA14458510 for ; Sat, 2 Mar 2024 11:13:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rgMN6-0001GJ-NQ; Sat, 02 Mar 2024 05:13:36 -0500 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 1rgMN3-0001Fm-Pj for guix-patches@gnu.org; Sat, 02 Mar 2024 05:13:33 -0500 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 1rgMN3-0001BQ-Fv for guix-patches@gnu.org; Sat, 02 Mar 2024 05:13:33 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rgMNV-00064W-NN for guix-patches@gnu.org; Sat, 02 Mar 2024 05:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68910] [PATCH] gnu: Add wasmedge. References: In-Reply-To: Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Mar 2024 10:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68910 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 68910@debbugs.gnu.org Received: via spool by 68910-submit@debbugs.gnu.org id=B68910.170937439623270 (code B ref 68910); Sat, 02 Mar 2024 10:14:01 +0000 Received: (at 68910) by debbugs.gnu.org; 2 Mar 2024 10:13:16 +0000 Received: from localhost ([127.0.0.1]:38088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgMMl-00063F-Tg for submit@debbugs.gnu.org; Sat, 02 Mar 2024 05:13:16 -0500 Received: from [159.226.251.81] (port=47898 helo=cstnet.cn) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rgMMg-00062T-7P for 68910@debbugs.gnu.org; Sat, 02 Mar 2024 05:13:14 -0500 Received: from m.taildaf0f.ts.net (unknown [183.247.5.134]) by APP-03 (Coremail) with SMTP id rQCowACHj+eJ++JlPsLtAw--.15189S2; Sat, 02 Mar 2024 18:12:25 +0800 (CST) From: Zheng Junjie Date: Sat, 2 Mar 2024 18:12:04 +0800 Message-ID: <47e53db905ed88fb653243b423528b1af0e358de.1709374240.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowACHj+eJ++JlPsLtAw--.15189S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYh7k0a2IF6F4UM7kC6x804xWl14x267AK xVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGw A2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26r1I 6r4UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r1j6r4UM28EF7xvwVC2z280aVAFwI0_Gr 1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F4UJwAS0I0E0xvYzxvE52x082IY 62kv0487M2AExVAIFx02aVAFz4v204v7Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0I7 IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r4U M4x0Y48IcxkI7VAKI48JM4kE6I8I3I0E14AKx2xKxVC2ax8xMxAIw28IcxkI7VAKI48JMx C20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAF wI0_Jr0_Jr4lx4CE17CEb7AF67AKxVWUJVWUXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20x vE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AKxVWUJVW8JwCI42IY6xAIw20EY4v2 0xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxV WUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxU29YwUUUUU X-Originating-IP: [183.247.5.134] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.27 X-Spam-Score: -5.27 X-Migadu-Queue-Id: DA14458510 X-Migadu-Scanner: mx11.migadu.com X-TUID: aLttok0Xkl1u * gnu/packages/web.scm (wasmedge): New variable. Change-Id: I62a5bbe0e228f0b743bee4d55c4948c61bbfc969 --- gnu/packages/web.scm | 64 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 9ded719e71..24947e2ee6 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -66,6 +66,7 @@ ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2023 Evgeny Pisemsky ;;; Copyright © 2024 Tomas Volf <~@wolfsden.cz> +;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -164,6 +165,7 @@ (define-module (gnu packages web) #:use-module (gnu packages kerberos) #:use-module (gnu packages libbsd) #:use-module (gnu packages libevent) + #:use-module (gnu packages libffi) #:use-module (gnu packages libidn) #:use-module (gnu packages libunistring) #:use-module (gnu packages libunwind) @@ -171,6 +173,8 @@ (define-module (gnu packages web) #:use-module (gnu packages lisp-xyz) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) + #:use-module (gnu packages llvm) + #:use-module (gnu packages logging) #:use-module (gnu packages mail) #:use-module (gnu packages man) #:use-module (gnu packages markup) @@ -1782,6 +1786,66 @@ (define-public wasm-micro-runtime features.") (license license:asl2.0))) + +(define wasmedge-unittest + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/second-state/WasmEdge-unittest") + (commit "wasm-dev-0.13.0"))) + (file-name + (git-file-name "WasmEdge-unittest" "wasm-dev-0.13.0")) + (sha256 + (base32 + "05nbwci836g0fr7p90v0p94166j7hbxhcw996xv20pywwblf73vl")))) + +(define-public wasmedge + (package + (name "wasmedge") + (version "0.13.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/WasmEdge/WasmEdge") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1l5rr0rma6n17d2khgac79azqjc9sl3r0vljjzc1aw9hhalmm895")))) + (build-system cmake-build-system) + (native-inputs (list googletest simdjson pkg-config)) + (inputs (list llvm-17 lld-17 spdlog libffi)) + (arguments + (list + #:configure-flags #~(list "-DWASMEDGE_BUILD_TESTS=ON") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-VERSION + (lambda _ + (call-with-output-file "VERSION" + (lambda (port) + (format port "~a" #$version))))) + (add-before 'configure 'unpack-unittest + (lambda _ + (substitute* "test/spec/CMakeLists.txt" + (("GIT_REPOSITORY https://github.com/second-state/WasmEdge-unittest") + (string-append "URL file://" #$wasmedge-unittest)) + (("GIT_TAG.*") "")))) + (add-before 'configure 'disable-test + (lambda _ + ;; this test require network + (substitute* "test/host/socket/CMakeLists.txt" + (("add_test\\(wasiSocketTests wasiSocketTests\\)") + ""))))))) + (home-page "https://wasmedge.org/") + (synopsis "High performance WebAssembly Virtual Machine") + (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.") + (license (list license:asl2.0 license:cc0)))) + (define-public websocketpp (package (name "websocketpp") base-commit: aeaa390b71a15335bef03f83bd9dc946fa535398 -- 2.41.0