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 51TrFu5hfV8UPgAA0tVLHw (envelope-from ) for ; Wed, 07 Oct 2020 06:36:30 +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 IJhYEu5hfV/8DwAAB5/wlQ (envelope-from ) for ; Wed, 07 Oct 2020 06:36:30 +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 8434B9400EF for ; Wed, 7 Oct 2020 06:36:29 +0000 (UTC) Received: from localhost ([::1]:34968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kQ33r-0007iA-2B for larch@yhetil.org; Wed, 07 Oct 2020 02:36:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kQ33T-0007hx-3Z for guix-patches@gnu.org; Wed, 07 Oct 2020 02:36:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43332) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kQ33S-0004Vt-QS for guix-patches@gnu.org; Wed, 07 Oct 2020 02:36:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kQ33S-0003DA-Mw for guix-patches@gnu.org; Wed, 07 Oct 2020 02:36:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43840] [PATCH] gnu: Add esbuild. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Oct 2020 06:36: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: Ryan Prior Cc: 43840@debbugs.gnu.org Received: via spool by 43840-submit@debbugs.gnu.org id=B43840.160205252512287 (code B ref 43840); Wed, 07 Oct 2020 06:36:02 +0000 Received: (at 43840) by debbugs.gnu.org; 7 Oct 2020 06:35:25 +0000 Received: from localhost ([127.0.0.1]:54878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ32r-0003C7-HJ for submit@debbugs.gnu.org; Wed, 07 Oct 2020 02:35:25 -0400 Received: from flashner.co.il ([178.62.234.194]:35736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kQ32q-0003Bu-99 for 43840@debbugs.gnu.org; Wed, 07 Oct 2020 02:35:24 -0400 Received: from localhost (unknown [147.161.9.74]) by flashner.co.il (Postfix) with ESMTPSA id E302B40148; Wed, 7 Oct 2020 06:35:16 +0000 (UTC) Date: Wed, 7 Oct 2020 09:34:31 +0300 From: Efraim Flashner Message-ID: <20201007063431.GH21174@E5400> References: <20201007023119.22495-1-rprior@protonmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="r5lq+205vWdkqwtk" Content-Disposition: inline In-Reply-To: <20201007023119.22495-1-rprior@protonmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; 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: -1.11 X-TUID: NCPjbPtqmqc8 --r5lq+205vWdkqwtk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 07, 2020 at 02:31:24AM +0000, Ryan Prior via Guix-patches via w= rote: > * gnu/packages/web.scm (esbuild): New variable. > --- > gnu/packages/web.scm | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) >=20 > diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm > index b798e0abca..1e2f2e7e10 100644 > --- a/gnu/packages/web.scm > +++ b/gnu/packages/web.scm > @@ -1345,6 +1345,34 @@ 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.11") > + (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 > + "08lx1i0s1q3my6x4csz746rc3c2fl4p0hyrwx4rpx80gwwjj1i11")))) > + (build-system go-build-system) > + (arguments > + '(#:import-path "github.com/evanw/esbuild/cmd/esbuild" > + #:unpack-path "github.com/evanw/esbuild")) > + (inputs > + `(("go-golang-org-x-sys" ,go-golang-org-x-sys))) > + (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 >=20 First pass, I don't see a vendor directory that needs to be deleted, and it does seem to only really depend on go-golang-org-x-sys, which is nice. There is an npm directory which is where the compiled binaries are placed, there are a couple in the checked out repo. diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 1e2f2e7e10..f55f1a02d9 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -1358,7 +1358,13 @@ used to validate and fix HTML data.") (file-name (git-file-name name version)) (sha256 (base32 - "08lx1i0s1q3my6x4csz746rc3c2fl4p0hyrwx4rpx80gwwjj1i11")))) + "08lx1i0s1q3my6x4csz746rc3c2fl4p0hyrwx4rpx80gwwjj1i11")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove pre-compiled binaries + (delete-file-recursively "npm") + #t)))) (build-system go-build-system) (arguments '(#:import-path "github.com/evanw/esbuild/cmd/esbuild" `esbuild --help` still works after removing the npm directory. Is it worth trying to run some of the test suite? I see there are a couple of 'make check' type targets in the Makefile at the root of the repository and currently there are none run during the build. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --r5lq+205vWdkqwtk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl99YXIACgkQQarn3Mo9 g1EBTA//QMWVHAs8Mpt6XTDcHZ9MEdoNxsNMGiMXke48F8UsceyIJqVisJzeNsxq im8sLxdD9cItF9u96ULSADOewvR4VWIULnPSMXZOOuJVwJQIyo91axsESVhUs75Y c/369rJS5bkqwErzpbk5P7dc8eg/xwq/45g+xqB6K4Km6Y133pVAtOL8q6rvAfal 2JDrB/t6ATZlMWWe5G82N0mDZyf51AbPuYGum5YxCimorY7de+OB8+tnul2HwdX0 DRifZp5+gm01dwASbCRFbcduUkzK78IIWvMyWPykuFrXWtsLIi9ZK7CUKDWVLcWX 7s/d6XryaEvvBUF0aFKPNsSf3OL/uzspv0OvlkhWOLCTRlxaSYBRGwbjc2pCpnVa kz6jxUBIxEnVhyKpvQ6jhMaJKCw55LbVTcP71P9HFi9eQqZX3QYL4kwTvZPokbmU iL+QUsAsL26n+ogbGxoAKkq9zeWy99QUR9oAecRc1L6vXbBiiaJceMzn7mAzTitD hrwEDd9kTzKaCoNGgYGsmn6pN1CBsFA0dUWLxOYR3Sz4bD2PBBiLjuiYzHGzMNdt D1FmdqdWL+QUexk6RRci0ZPASYz1vS+e9j/NzarN6XmoHJe6L+h5tK0R3e+TXrzT 6pWnv7uTsMCcprg64EOhRM0047+YMWbEo3knKXiFH4UK7Fws5ZA= =4SkT -----END PGP SIGNATURE----- --r5lq+205vWdkqwtk--