From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0Nj8J5nYtGKlAAAAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 23:18:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0DUyJ5nYtGKhFQAAG6o9tA (envelope-from ) for ; Thu, 23 Jun 2022 23:18:17 +0200 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 36A76223B4 for ; Thu, 23 Jun 2022 23:18:17 +0200 (CEST) Received: from localhost ([::1]:48040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4UDP-0005Hy-KO for larch@yhetil.org; Thu, 23 Jun 2022 17:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4UDC-0005HJ-Oq for guix-patches@gnu.org; Thu, 23 Jun 2022 17:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4UDC-00040s-Go for guix-patches@gnu.org; Thu, 23 Jun 2022 17:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4UDC-0007PS-BI for guix-patches@gnu.org; Thu, 23 Jun 2022 17:18:02 -0400 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-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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656019097; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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: dkim-signature; bh=LVe+FIDjSAwF3mXiapnnocI04FGGdJGjofSX1NgLkwk=; b=pgZrbOaqKrkqpp4TNFuFADLTjHaEZbyQZjtB9Amu6KPmjZFQxPaczz2HDxCXjWTc9BMDO+ EDcz2i56lq6LaNyE8n0OluJpzYStOrMeje24LIQvdlE7oYkXCEeiNUZgZnbL3NqHitYqVs q82vCjVv6bhn1zTD68UuA5tBF2/8IXOLmbfLaPrkftyCcqT/sD3hD2QdQnCbjWpvodH3d+ 2FMrd/tt1oXpxNXrVBPBADIc/rt1qGsmD3YmPUWYUGXpbhwyU3wP/G8xAv8IBCJKKN21q5 r/wT/j4Yn6ZDMvIKBGz9a+7IJyS6MqJq1GNQ1Bs/YGZiTGH88dRPYoGg3iaoAw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656019097; a=rsa-sha256; cv=none; b=pWXrJgSYO5EDECDGLLSnkNNt1SxuCJ3fhOSQngQhe063FwGBXOa+xT74UzZ442YwAxnozy N8Ns7/fHSy6UbpqT7h2i/wD59F9k6PH+7HOTWla2Q5k/N2IAhimilLuLPF4rFbZvx/GbEf ZZD2iNkkS8j2LegTQ6rh7var+iiu6rk1sQCdplNKNKYFNPu8asukK8RRgz343nrV1tX2qC lga5Jttzu2/vMQf9UaeQ1nhtcJgHocPbH8yULKU6Z+p0SK0DHwEmW30bi4QpDZgJ5WnR/i EtmGy322lLZzVNoW88m3utEb3oRAotnQTnnY6pWf0ZnJ81CxC82H/Z8zG0YiFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Yg2tDjMd; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -6.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Yg2tDjMd; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 36A76223B4 X-Spam-Score: -6.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: ukxnnKMjAMmo --=-=-= 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----- --=-=-=--