From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MFopLuLDXl8vEwAA0tVLHw (envelope-from ) for ; Mon, 14 Sep 2020 01:14:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OF5aKOLDXl/8DAAAB5/wlQ (envelope-from ) for ; Mon, 14 Sep 2020 01:14:10 +0000 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 3D02F94050D for ; Mon, 14 Sep 2020 01:14:10 +0000 (UTC) Received: from localhost ([::1]:48224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHd4K-0001zf-Sc for larch@yhetil.org; Sun, 13 Sep 2020 21:14:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHd4E-0001zG-TF for guix-patches@gnu.org; Sun, 13 Sep 2020 21:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40653) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHd4E-0003AH-Iy for guix-patches@gnu.org; Sun, 13 Sep 2020 21:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kHd4E-00017u-EH for guix-patches@gnu.org; Sun, 13 Sep 2020 21:14:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43391] [PATCH 1/1] gnu: Add quickjs. References: <20200914011130.20880-1-rprior@protonmail.com> In-Reply-To: <20200914011130.20880-1-rprior@protonmail.com> Resent-From: rprior@protonmail.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Sep 2020 01:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43391 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43391@debbugs.gnu.org Cc: Ryan Prior Received: via spool by 43391-submit@debbugs.gnu.org id=B43391.16000460264301 (code B ref 43391); Mon, 14 Sep 2020 01:14:02 +0000 Received: (at 43391) by debbugs.gnu.org; 14 Sep 2020 01:13:46 +0000 Received: from localhost ([127.0.0.1]:52199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHd3x-00017I-UY for submit@debbugs.gnu.org; Sun, 13 Sep 2020 21:13:46 -0400 Received: from mail-40133.protonmail.ch ([185.70.40.133]:53291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHd3w-000176-17 for 43391@debbugs.gnu.org; Sun, 13 Sep 2020 21:13:45 -0400 Date: Mon, 14 Sep 2020 01:13:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1600046017; bh=ZWyqjCFsJt9NvfTQ1apYC2MezsSLmep21jPgfEb+x4s=; h=Date:To:From:Cc:Reply-To:Subject:From; b=rnguelKhoo4aA41nqqpOU+XPz8mk/HNAjCGlQOgRWIz7IIE9R2hDfDyHVvueohKR7 rlCJ+gpxPj9aN7+1su+GQAVyv1+YsIc+1GfIIVm+YLVn3ONPjAtTREZZDIfgHQTIGX RG4bY+VzDZPxzoCrLcM0axlu5HkVK3tanS8zW+u0= Message-ID: <20200914011325.21015-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" Reply-to: rprior@protonmail.com, rprior--- via Guix-patches From: rprior--- via Guix-patches via X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=protonmail.com header.s=protonmail header.b=rnguelKh; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: A3a2GNWxwfiS From: Ryan Prior * gnu/packages/javascript.scm (quickjs): New variable. --- gnu/packages/javascript.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index fbc7388f3d..9c6c95bd70 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -447,3 +447,33 @@ to use, and is very similar to Lua. There is no need = to interact with byzantine C++ template mechanisms, or worry about marking and unmarking garbage coll= ection roots, or wrestle with obscure build systems.") (license license:isc))) + +(define-public quickjs + (package + (name "quickjs") + (version "2020-09-06") + (source (origin + (method url-fetch) + (uri (string-append "https://bellard.org/quickjs/quickjs-" + version ".tar.xz")) + (sha256 + (base32 "05vpnnzmws7plnwsnk2brwf7whyj84l5xl0iahi1xdn6rpla68= 80")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list "prefix=3D" + (string-append "DESTDIR=3D" %output)) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'check + (lambda _ + (invoke "make" "microbench")))))) + (home-page "https://bellard.org/quickjs/") + (synopsis "Small embeddable Javascript engine") + (description "QuickJS supports the ES2020 specification including modu= les, +asynchronous generators, proxies, BigInt and BigDecimal. It can compile +Javascript sources to executables with no external dependency. It include= s a +command line interpreter with contextual colorization implemented in +Javascript and a small built-in standard library with C library wrappers."= ) + (license license:expat))) --=20 2.17.1