From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mI6AEh4wg18kJwAA0tVLHw (envelope-from ) for ; Sun, 11 Oct 2020 16:17:34 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id QE1LDh4wg19tUQAAbx9fmQ (envelope-from ) for ; Sun, 11 Oct 2020 16:17:34 +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 C73469402A6 for ; Sun, 11 Oct 2020 16:17:33 +0000 (UTC) Received: from localhost ([::1]:56226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kRe2O-0003mg-Og for larch@yhetil.org; Sun, 11 Oct 2020 12:17:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kRe1x-0003UM-GH for guix-patches@gnu.org; Sun, 11 Oct 2020 12:17:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kRe1v-0001hV-1c for guix-patches@gnu.org; Sun, 11 Oct 2020 12:17:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kRe1u-000483-TZ for guix-patches@gnu.org; Sun, 11 Oct 2020 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43840] [PATCH 2/2] gnu: Add esbuild. Resent-From: Ryan Prior Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Oct 2020 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43840 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43840@debbugs.gnu.org Received: via spool by 43840-submit@debbugs.gnu.org id=B43840.160243300515816 (code B ref 43840); Sun, 11 Oct 2020 16:17:02 +0000 Received: (at 43840) by debbugs.gnu.org; 11 Oct 2020 16:16:45 +0000 Received: from localhost ([127.0.0.1]:40883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRe1c-000472-LA for submit@debbugs.gnu.org; Sun, 11 Oct 2020 12:16:44 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:39329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kRe1b-00046q-Af for 43840@debbugs.gnu.org; Sun, 11 Oct 2020 12:16:44 -0400 Date: Sun, 11 Oct 2020 16:16:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1602432997; bh=0Klbj+ISyWGh0RU1g4FupUylrDmwF3L1ABbwj7czGsg=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=Aoe8xqTHEm9H4jETcliLa/V+bsjU1ySwHVZuTgrWTJOBCjWHimDf4NlYdTFKcTkas FBYOeOT09Mfkj5G4/Ld6+CtPa4yAJ27GPLTqqYaVefkM/1gevCyIGouFq6FOD2yv/m JUxgHFAbOHiaSPBA6ezBo4yZ7DZzskyEw7XjQ7ds= Message-ID: <20201011161619.30562-2-rprior@protonmail.com> In-Reply-To: <20201011161619.30562-1-rprior@protonmail.com> References: <20201011161619.30562-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: Ryan Prior , Ryan Prior via Guix-patches From: Ryan Prior 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=Aoe8xqTH; dmarc=pass (policy=none) header.from=gnu.org; 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: 1fFLTd0Pd3ea * gnu/packages/web.scm (esbuild): New variable. --- gnu/packages/web.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 1699c92366..7963bff4d1 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -45,6 +45,7 @@ ;;; Copyright =C2=A9 2018, 2019, 2020 Bj=C3=B6rn H=C3=B6fling ;;; Copyright =C2=A9 2020 Paul Garlick ;;; Copyright =C2=A9 2020 Michael Rohleder +;;; Copyright =C2=A9 2020 Ryan Prior ;;; ;;; This file is part of GNU Guix. ;;; @@ -84,6 +85,7 @@ #:use-module (gnu packages admin) #:use-module (gnu packages adns) #:use-module (gnu packages apr) + #:use-module (gnu packages base) #:use-module (gnu packages boost) #:use-module (gnu packages check) #:use-module (gnu packages documentation) @@ -129,6 +131,7 @@ #:use-module (gnu packages markup) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) + #:use-module (gnu packages node) #:use-module (gnu packages nss) #:use-module (gnu packages openldap) #:use-module (gnu packages openstack) @@ -1346,6 +1349,51 @@ used to validate and fix HTML data.") (home-page "http://tidy.sourceforge.net/") (license (license:x11-style "file:///include/tidy.h")))) =20 +(define-public esbuild + (package + (name "esbuild") + (version "0.7.14") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/evanw/esbuild") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1y5hqymv2r8r29f8vh8kgncj3wlkg4fzi0zlc7mgyss872ajkc7i")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove prebuilt binaries + (delete-file-recursively "npm") + #t)))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/evanw/esbuild/cmd/esbuild" + #:unpack-path "github.com/evanw/esbuild" + #:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? unpack-path #:allow-other-keys) + (if tests? + (with-directory-excursion (string-append "src/" unpack-pa= th) + (invoke "make" "test-go"))) + #t))))) + (inputs + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) + (native-inputs + `(("make" ,gnu-make) + ("go-github-com-kylelemons-godebug" ,go-github-com-kylelemons-godeb= ug))) + (home-page "https://github.com/evanw/esbuild") + (synopsis "Bundler and minifier tool for JavaScript and TypeScript") + (description + "The esbuild tool provides a unified bundler, transpiler and +minifier. It packages up JavaScript and TypeScript code, along with JSON +and other data, for distribution on the web.") + (license license:expat))) + (define-public tinyproxy (package (name "tinyproxy") --=20 2.17.1