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 ms0.migadu.com with LMTPS id 2GpZCXm9/GAIPwAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 03:25:13 +0200 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 SJzGBHm9/GDkPgAAB5/wlQ (envelope-from ) for ; Sun, 25 Jul 2021 01:25:13 +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 B76E72F92 for ; Sun, 25 Jul 2021 03:25:11 +0200 (CEST) Received: from localhost ([::1]:53812 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7StB-0006dg-V2 for larch@yhetil.org; Sat, 24 Jul 2021 21:25:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7St4-0006dR-Ff for bug-guix@gnu.org; Sat, 24 Jul 2021 21:25:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35707) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7St4-0003in-2W for bug-guix@gnu.org; Sat, 24 Jul 2021 21:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7St3-0004Tl-TL for bug-guix@gnu.org; Sat, 24 Jul 2021 21:25:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49582: [PATCH] gnu: Add tosdr-chromium. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Jul 2021 01:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49582 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: Justin Veilleux Received: via spool by 49582-submit@debbugs.gnu.org id=B49582.162717629417202 (code B ref 49582); Sun, 25 Jul 2021 01:25:01 +0000 Received: (at 49582) by debbugs.gnu.org; 25 Jul 2021 01:24:54 +0000 Received: from localhost ([127.0.0.1]:47253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7Ssw-0004TO-9z for submit@debbugs.gnu.org; Sat, 24 Jul 2021 21:24:54 -0400 Received: from out0.migadu.com ([94.23.1.103]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7Ssq-0004TB-WD for 49582@debbugs.gnu.org; Sat, 24 Jul 2021 21:24:52 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1627176287; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NZnBxp9s2q1Z1WlnZ45uyyNe2e9BfFR9/787n0GlLkg=; b=ZifO19zWxj9H+mKe65wtA43RplJAPTihbEQXLvrNrSlRB3RL1BxpIkdM3sQceVT4Xexy5o cyRTxYy078XSVDxlaR7UgVD2hvVLalJjicI7/hc8bcx+/vm526pLhldghXKALQeq2hWlDg KrflxXUP5Yy+qjWb5ltzgm/wVRnlAhQ= From: Sarah Morgensen References: Date: Sat, 24 Jul 2021 18:24:45 -0700 In-Reply-To: (Justin Veilleux's message of "Thu, 15 Jul 2021 14:06:57 -0400") Message-ID: <86k0lfp4ma.fsf@mgsn.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Auth-User: iskarian@mgsn.dev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49582@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627176312; 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: content-transfer-encoding:content-transfer-encoding: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=NZnBxp9s2q1Z1WlnZ45uyyNe2e9BfFR9/787n0GlLkg=; b=pKLP8qKZ0n2h2YDm6EdMZjEWfxBU1zZYMWpiQpABUyJKTdAtw7W20x9NVf7NsDf0UdiBof S/eC/7Op5unUdROjFb52bIFgVFy30ni/+iKJzoR51AKMNMZyOb/lHHEBSPCuJaIxH5OYuF 7O584whaitceOsdqBljHbfcMEi6IW2nOnXbe/fqmeGC445mH+QF9QGeuSBfNwGdDQCSgkU 2vaDBcz43hkvdPi3fqfKKlvyZv+Tv19kmf9qmBa5Q2qc79QAVtBt7Y6lPlxX2Xiif9NEvS 9VvNwRG26oUvtHGLeVwswCT7+WCD/v74wjNBmhJEDJdi0SxqRXQPsIUI/NxJeA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627176312; a=rsa-sha256; cv=none; b=EaKNTUmWYhCNmAthxfameEC9e/mhyXqVSpHuY8yYBfxWOoFpaa8Hb3pfwuMzwYOWVE8W0o q2sppSo9P7myioB8zpRfpznrsiuW/lP14Cq24tzAH+eNTzfqTfgjsVocligJaFcPBbLh9d ufnAi/rgGc2FCoNY4ykFvV0kI8vcwruhwH9YNSCE1klluGwmqGAliNlUcFKG30RawYYWz+ T86D+yef0Ug1BgRhKmLRulfNGhA6PxUdsOmamrxsZkKRO2WQFWYh8ab0lPn/Fa6ti9hHTs tftmaC3oI8/OcYKNrfjAF01xba6+/izWZARXHYm8f5q7pvLaoqFlZZOOAJ0LUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=ZifO19zW; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=ZifO19zW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B76E72F92 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: eYIgS1YI4TP+ Hi, Apologies, I didn't see this patch when I sent my previous reply. This patch applies and builds, but the bulk of my previous suggestions remain. Justin Veilleux writes: > this patch adds the tos;dr initiative's extension > > From c6881b9b065cf2a85b604c8a1e5ddbae77822034 Mon Sep 17 00:00:00 2001 > From: terramorpha > Date: Thu, 15 Jul 2021 14:03:19 -0400 > Subject: [PATCH] gnu: Add tosdr-chromium. > > * gnu/packages/browser-extensions.scm (tosdr, tosdr-chromium): New variab= les. > --- > gnu/packages/browser-extensions.scm | 50 ++++++++++++++++++++++++++++- > 1 file changed, 49 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/browser-extensions.scm b/gnu/packages/browser-e= xtensions.scm > index a6120baf96..7a1a5bda69 100644 > --- a/gnu/packages/browser-extensions.scm > +++ b/gnu/packages/browser-extensions.scm > @@ -1,5 +1,6 @@ > ;;; GNU Guix --- Functional package management for GNU > ;;; Copyright =C2=A9 2020, 2021 Marius Bakke > +;;; Copyright =C2=A9 2021 Justin Veilleux > ;;; > ;;; This file is part of GNU Guix. > ;;; > @@ -21,10 +22,14 @@ > #:use-module (guix git-download) > #:use-module (guix build-system copy) > #:use-module (guix build-system gnu) > + #:use-module (guix build-system trivial) > #:use-module ((guix licenses) #:prefix license:) > #:use-module (gnu build chromium-extension) > #:use-module (gnu packages compression) > - #:use-module (gnu packages python)) > + #:use-module (gnu packages python) > + #:use-module (gnu packages base) > + #:use-module (gnu packages bash) > + #:use-module (gnu packages node)) >=20=20 > (define play-to-kodi > (package > @@ -121,3 +126,46 @@ ungoogled-chromium.") >=20=20 > (define-public ublock-origin/chromium > (make-chromium-extension ublock-origin "chromium")) > + > +(define tosdr > + (package > + (name "tosdr") > + (version "4.1.1") > + (source > + (origin > + (uri > + (git-reference > + (url "https://github.com/tosdr/browser-extensions.git") > + (commit version))) > + (sha256 > + (base32 "0wz31f9rz087yw1a7cdhdgqvgnhbk569jywv846n122m4bpk3yw0")) > + (method git-fetch))) > + (inputs > + `(("bash" ,bash) > + ("coreutils" ,coreutils) > + ("node" ,node) > + ("zip" ,zip) > + ("unzip" ,unzip))) > + (arguments > + `(#:builder > + (begin > + (use-modules (guix build utils)) > + (set-path-environment-variable "PATH" > + '("bin") > + (map cdr %build-inputs)) Also, these should be spaces, not tabs. > + (copy-recursively (assoc-ref %build-inputs "source") ".") > + (invoke "sh" "./build.sh") > + (invoke "unzip" "dist/chrome.zip" "-d" %output) > + #t) > + #:modules ((guix build utils)))) > + (build-system trivial-build-system) > + (synopsis "extension to inform of the important aspects of the terms= and > +conditions of a web service") > + (description "This extension informs you instantly of your rights on= line by > +showing an unintrusive icon in the toolbar. You can click on this icon t= o get > +summaries from the Terms of Service; Didn't Read initiative.") > + (license license:agpl3) > + (home-page "https://tosdr.org/"))) > + > +(define-public tosdr-chromium > + (make-chromium-extension tosdr)) -- Sarah