From unknown Sat Sep 06 14:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55965] [PATCH 8/9] gnu: Add node-crx3. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 14 Jun 2022 09:51:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55965 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55965@debbugs.gnu.org Cc: Nicolas Graves X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165520024711101 (code B ref -1); Tue, 14 Jun 2022 09:51:05 +0000 Received: (at submit) by debbugs.gnu.org; 14 Jun 2022 09:50:47 +0000 Received: from localhost ([127.0.0.1]:32977 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o13CB-0002su-2d for submit@debbugs.gnu.org; Tue, 14 Jun 2022 05:50:47 -0400 Received: from lists.gnu.org ([209.51.188.17]:53458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o13C6-0002sA-LB for submit@debbugs.gnu.org; Tue, 14 Jun 2022 05:50:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o13C6-0008NY-BV for guix-patches@gnu.org; Tue, 14 Jun 2022 05:50:42 -0400 Received: from 3.mo560.mail-out.ovh.net ([46.105.58.226]:58849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o13C3-00020y-MH for guix-patches@gnu.org; Tue, 14 Jun 2022 05:50:42 -0400 Received: from player746.ha.ovh.net (unknown [10.110.208.120]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 19FA224961 for ; Tue, 14 Jun 2022 09:50:38 +0000 (UTC) Received: from ngraves.fr (unknown [176.166.159.77]) (Authenticated sender: ngraves@ngraves.fr) by player746.ha.ovh.net (Postfix) with ESMTPSA id B00F31E2E0C78; Tue, 14 Jun 2022 09:50:35 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-109S003c01fc50b-f414-4fe4-8234-6cb4d53ae47c, F2255CAF11B24C4280F910282C1ED9962B83CC59) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 176.166.159.77 From: Nicolas Graves Date: Tue, 14 Jun 2022 11:49:53 +0200 Message-Id: <20220614094954.15197-8-ngraves@ngraves.fr> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220614094954.15197-1-ngraves@ngraves.fr> References: <20220614094954.15197-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6480116916077781730 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudduledgvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpudejiedrudeiiedrudehledrjeejnecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejgeeirdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepghhuihigqdhprghttghhvghssehgnhhurdhorhhgpdfovfetjfhoshhtpehmohehiedt Received-SPF: pass client-ip=46.105.58.226; envelope-from=ngraves@ngraves.fr; helo=3.mo560.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/node-xyz.scm (node-crx3): New variable. --- gnu/packages/node-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index 8ec014eee8..79594856f1 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -109,6 +109,46 @@ (define-public node-color-name "This package provides a JSON list with color names and their values.") (license license:expat))) +(define-public node-crx3 + (package + (name "node-crx3") + (version "1.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ahwayakchih/crx3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1snqyw8c3s9p2clhqh1172z0rs1was36sfxkk6acgpar32c2rwzw")))) + (build-system node-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'check) + (add-after 'unpack 'replace-mri-by-minimist + (lambda _ + (substitute* "package.json" + (("\"mri\": \"\\^1.1.6\",") "\"minimist\": \"^1.2.6\",")) + (substitute* "lib/configuration.js" + (("mri") "minimist")) + #t)) + (replace 'configure + (lambda* (#:key inputs #:allow-other-keys) + (invoke (string-append (assoc-ref inputs "node") "/bin/npm") + "--offline" "--ignore-scripts" "install" "--production") + #t))))) + (inputs (list node-minimist node-pbf node-yazl)) + (home-page "https://github.com/ahwayakchih/crx3") + (synopsis "Create web extension files for Chromium and all other browsers +supporting the file format and API") + (description "This package creates web extension files (CRXv3) for Chromium +versions 64.0.3242 and above and all other browsers supporting the file format +and API.") + (license license:bsd-3))) + (define-public node-env-variable (package (name "node-env-variable") -- 2.36.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 15 05:21:16 2022 Received: (at control) by debbugs.gnu.org; 15 Jun 2022 09:21:16 +0000 Received: from localhost ([127.0.0.1]:36543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1PDA-0006wM-Fb for submit@debbugs.gnu.org; Wed, 15 Jun 2022 05:21:16 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:44815) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o1PD8-0006wE-I1 for control@debbugs.gnu.org; Wed, 15 Jun 2022 05:21:14 -0400 Received: from lprikler-laptop.ist.intra (gw.ist.tugraz.at [129.27.202.101]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4LNKYN6rMhz1LZWS for ; Wed, 15 Jun 2022 11:21:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4LNKYN6rMhz1LZWS DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1655284873; bh=DbixW9/N1FL9uQx4nl8mGj/fr+jmDHL4b8hlnpDE8DU=; h=Subject:From:To:Date:From; b=syJWrXq8i39djGklsXvAgSUkPpF1rPH5p8FvQ7Mwxf+fBMdOT9JD/IdSlUAO0sd2H euaM5ZQS6o5lsQe0WV5GSMe3C108ig+kfqeSn0rkzfjmN/WG1d9QOWOWrVaSu+EIxF sohBUpR7BNtH6Z7hiuWYtukQxqcZpgifSI4oueS8= Message-ID: Subject: From: Liliana Marie Prikler To: control@debbugs.gnu.org Date: Wed, 15 Jun 2022 11:21:11 +0200 Content-Type: text/plain User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-TUG-Backscatter-control: waObeELIUl4ypBWmcn/8wQ X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: merge 55958 55959 55960 55961 55962 55963 55964 55965 55966 thanks Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [129.27.2.202 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [129.27.2.202 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 BLANK_SUBJECT Subject is present but empty -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.7 BODY_EMPTY No body text in message X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.4 (/) merge 55958 55959 55960 55961 55962 55963 55964 55965 55966 thanks From unknown Sat Sep 06 14:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55965] [PATCH 8/9] gnu: Add node-crx3. Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jun 2022 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55965 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55965@debbugs.gnu.org Cc: Nicolas Graves X-Debbugs-Original-To: Nicolas Graves via Guix-patches via , 55965@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165601907528458 (code B ref -1); Thu, 23 Jun 2022 21:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2022 21:17:55 +0000 Received: from localhost ([127.0.0.1]:40126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4UD5-0007Ov-Dl for submit@debbugs.gnu.org; Thu, 23 Jun 2022 17:17:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:55532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4UD3-0007On-W3 for submit@debbugs.gnu.org; Thu, 23 Jun 2022 17:17:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UD3-0005GE-Qu for guix-patches@gnu.org; Thu, 23 Jun 2022 17:17:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49488) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UD2-0003yv-Gg; Thu, 23 Jun 2022 17:17:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=LVe+FIDjSAwF3mXiapnnocI04FGGdJGjofSX1NgLkwk=; b=Yg2tDjMd8HSBEWzoGxxp EPJ1JqVlNXUP5J6eBrbd5lWeX/CHNSmDbfXCwVee1kzqPi5F8UYLRsMuTqM8V42LkebwlpPFwNcUd 76Zxj9xIzqFkbUDZmiLPT5RnXSL/RDaZvbvw2Zelrcga71C/dGES2eSjv+JOkTPkO/tcfexh8nqQ8 1yGjyU9F0eWXMch03r9zswHcJZTofQKAaW3AYmLy7AUCNP9TequGmfizHjNwHGiuw4sMvTR+rTKgC LjZddTJsOuGhZjLDKzxKNyKWPDoUP7SEuzEPuQ3o9ms5PclTMzNdrsAuDZdCP2j8zET+mIU5oRnnt 5/GDozQO9nZfYQ==; Received: from host-37-191-236-102.lynet.no ([37.191.236.102]:59636 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UCz-0006w0-9i; Thu, 23 Jun 2022 17:17:52 -0400 From: Marius Bakke In-Reply-To: <20220614094954.15197-8-ngraves@ngraves.fr> References: <20220614094954.15197-1-ngraves@ngraves.fr> <20220614094954.15197-8-ngraves@ngraves.fr> Date: Thu, 23 Jun 2022 23:17:46 +0200 Message-ID: <87tu8bqdtx.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Graves via Guix-patches via skriver: > * gnu/packages/node-xyz.scm (node-crx3): New variable. > --- > gnu/packages/node-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm > index 8ec014eee8..79594856f1 100644 > --- a/gnu/packages/node-xyz.scm > +++ b/gnu/packages/node-xyz.scm > @@ -109,6 +109,46 @@ (define-public node-color-name > "This package provides a JSON list with color names and their value= s.") > (license license:expat))) >=20=20 > +(define-public node-crx3 > + (package > + (name "node-crx3") > + (version "1.1.3") > + (source > + (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/ahwayakchih/crx3") > + (commit (string-append "v" version)))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "1snqyw8c3s9p2clhqh1172z0rs1was36sfxkk6acgpar32c2rwzw")))) > + (build-system node-build-system) > + (arguments > + '(#:phases > + (modify-phases %standard-phases > + (delete 'check) > + (add-after 'unpack 'replace-mri-by-minimist > + (lambda _ > + (substitute* "package.json" > + (("\"mri\": \"\\^1.1.6\",") "\"minimist\": \"^1.2.6\",")) Dots should also be escaped, otherwise they match any character. Personally I prefer to have the replacement on a second line for readability but no strong opinion. > + (substitute* "lib/configuration.js" > + (("mri") "minimist")) > + #t)) > + (replace 'configure > + (lambda* (#:key inputs #:allow-other-keys) > + (invoke (string-append (assoc-ref inputs "node") "/bin/npm") > + "--offline" "--ignore-scripts" "install" "--product= ion") > + #t))))) > + (inputs (list node-minimist node-pbf node-yazl)) > + (home-page "https://github.com/ahwayakchih/crx3") > + (synopsis "Create web extension files for Chromium and all other bro= wsers > +supporting the file format and API") Perhaps 'Create CRXv3 browser extensions with JavaScript'? Also, can you add your copyright at the top of the file? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEARYKAC0WIQRNTknu3zbaMQ2ddzTocYulkRQQdwUCYrTYeg8cbWFyaXVzQGdu dS5vcmcACgkQ6HGLpZEUEHesywEA3EVKBsv7hFVtgVTKOFrSheCfwUyeB3rJXtmm NLFYC7IBAPdLRFZD46SiQxSwvvSM9EDzLcFYyum16Z8UCaMTe6YF =KQH3 -----END PGP SIGNATURE----- --=-=-=-- From unknown Sat Sep 06 14:24:03 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#55965] [PATCH] gnu: Add node-crx3. References: <20220614094954.15197-8-ngraves@ngraves.fr> In-Reply-To: <20220614094954.15197-8-ngraves@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 10:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55965 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55965@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 55965-submit@debbugs.gnu.org id=B55965.165831244731036 (code B ref 55965); Wed, 20 Jul 2022 10:21:01 +0000 Received: (at 55965) by debbugs.gnu.org; 20 Jul 2022 10:20:47 +0000 Received: from localhost ([127.0.0.1]:55913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE6ow-00084U-Ls for submit@debbugs.gnu.org; Wed, 20 Jul 2022 06:20:46 -0400 Received: from 10.mo575.mail-out.ovh.net ([46.105.79.203]:59621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE6ou-00084D-7b for 55965@debbugs.gnu.org; Wed, 20 Jul 2022 06:20:45 -0400 Received: from player692.ha.ovh.net (unknown [10.108.20.214]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 9404724A45 for <55965@debbugs.gnu.org>; Wed, 20 Jul 2022 10:20:42 +0000 (UTC) Received: from ngraves.fr (unknown [176.166.159.77]) (Authenticated sender: ngraves@ngraves.fr) by player692.ha.ovh.net (Postfix) with ESMTPSA id 99A452CA78AF1; Wed, 20 Jul 2022 10:20:38 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-105G006cec82e08-974d-4d96-b75e-4910a1b981cd, 129C31CF0BB9A5A41165496B287D5FC7981061FF) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 176.166.159.77 From: Nicolas Graves Date: Wed, 20 Jul 2022 12:20:34 +0200 Message-Id: <20220720102034.16652-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 15490412394598425314 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrudelvddgvdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepteeffefhfffhjeevleeuvdehgffgveekheeuhfekhfehuefgheffhedugfegleeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpudejiedrudeiiedrudehledrjeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrheiledvrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepheehleeiheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheejhe X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/node-xyz.scm (node-crx3): New variable. --- gnu/packages/node-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/node-xyz.scm b/gnu/packages/node-xyz.scm index ff3bd9084f..7c506afe41 100644 --- a/gnu/packages/node-xyz.scm +++ b/gnu/packages/node-xyz.scm @@ -108,6 +108,45 @@ (define-public node-color-name "This package provides a JSON list with color names and their values.") (license license:expat))) +(define-public node-crx3 + (package + (name "node-crx3") + (version "1.1.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ahwayakchih/crx3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1snqyw8c3s9p2clhqh1172z0rs1was36sfxkk6acgpar32c2rwzw")))) + (build-system node-build-system) + (arguments + '(#:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'replace-mri-by-minimist + (lambda _ + (substitute* "package.json" + (("\"mri\": \"\\^1\\.1\\.6\",") + "\"minimist\": \"^1.2.6\",")) + (substitute* "lib/configuration.js" + (("mri") + "minimist")))) + (replace 'configure + (lambda* (#:key inputs #:allow-other-keys) + (invoke "npm" "--offline" + "--ignore-scripts" "install" "--production")))))) + (inputs (list node-minimist node-pbf node-yazl)) + (home-page "https://github.com/ahwayakchih/crx3") + (synopsis "Create CRXv3 browser extensions with Javascript") + (description "This package creates web extension files (CRXv3) for Chromium +versions 64.0.3242 and above and all other browsers supporting the file format +and API.") + (license license:bsd-3))) + (define-public node-env-variable (package (name "node-env-variable") -- 2.37.0