From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eCcFAXOo/WDAQgAAgWs5BA (envelope-from ) for ; Sun, 25 Jul 2021 20:07:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EFA1OHKo/WAxMwAA1q6Kng (envelope-from ) for ; Sun, 25 Jul 2021 18:07:46 +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 A18888B3E for ; Sun, 25 Jul 2021 20:07:46 +0200 (CEST) Received: from localhost ([::1]:51462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7iXR-0007lE-Mu for larch@yhetil.org; Sun, 25 Jul 2021 14:07:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7i8Z-0003nG-1y for guix-patches@gnu.org; Sun, 25 Jul 2021 13:42:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7i8Y-00057i-GZ for guix-patches@gnu.org; Sun, 25 Jul 2021 13:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7i8Y-0002Gs-BZ for guix-patches@gnu.org; Sun, 25 Jul 2021 13:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49582] [PATCH] gnu: Add tosdr-chromium. Resent-From: Justin Veilleux Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jul 2021 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49582 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49582@debbugs.gnu.org Received: via spool by 49582-submit@debbugs.gnu.org id=B49582.16272348658665 (code B ref 49582); Sun, 25 Jul 2021 17:42:02 +0000 Received: (at 49582) by debbugs.gnu.org; 25 Jul 2021 17:41:05 +0000 Received: from localhost ([127.0.0.1]:49332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7i7d-0002Fg-9x for submit@debbugs.gnu.org; Sun, 25 Jul 2021 13:41:05 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:38540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7i7a-0002F4-BY for 49582@debbugs.gnu.org; Sun, 25 Jul 2021 13:41:04 -0400 Received: by mail-qk1-f176.google.com with SMTP id az7so6663564qkb.5 for <49582@debbugs.gnu.org>; Sun, 25 Jul 2021 10:41:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=0oHKuDwEnXkj10AV+PX5z+aUytUkSQBOaSDZ0QMJgxM=; b=YY3GDG38SGWp5dVm/jjTgYN+aCn/cjJwiN4W0xs4SHmRgTDLZ1+8KwEBlOaDg2GPv0 OvYmHxOmaxiYbsk/JVvnbFSUV+OX0bSSJecRz9ScFdbd6fEHQhvduZcZEKxtoYLGfrNG 3qQxuU4trwNiPxhscYA7ehTBFB+2qQkLAhrJuou8TjZDG///Fga7NG3krCw6z1jdlY00 iivVDD2aYNJHoxsjX+F55z9ObUyFOr6o0NWvc8YPcS5qQaXh74n80T/JK5RKJBuMSLe+ /9RW1TZSNLvh/GP50zCH/S4ygyKeOnrMHIMnD3OcSA7KVzYIeWqh3DVIuAi15v6U1hFP 3Hvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=0oHKuDwEnXkj10AV+PX5z+aUytUkSQBOaSDZ0QMJgxM=; b=Vo6sSYUkKw6wk/qL9B7sMj6gQQfjpsHca6EG/8SaF3r1deZRkRZ5uUKr0EduTJUxgz tLgZrMHxpVfcY1Bo9FQR8XCTzK50ghmeOJVowWuBoN90qL074vktUnrogfojZ+iErnxL Okl6FEPloJZR3nNA7/mvDp5Xivpc4NvsvjbjiH7GgZEzHUN7VWyOhGzGqhxZioj32Qo9 GqEGsb04yKWAFkT8EnpGI/W6ouP4jgrc/HbIj+X/E4iM+0fuGIQbVrfyhaxFSiwupkcm HY7AXXhVEDbSZoUbMmbq+LmsU4eYh30NbFOqoaRNjHtrruIRijLbz3b89IuAHoYbG+9i 3wXA== X-Gm-Message-State: AOAM531hkZ+RFeoellbhq8C51mzvSkhjCE60AlwJVr+8lP21NlkLXFMq mTwXJhD0uHdvw0ddOzUfN2V7HhJhh/MvRg== X-Google-Smtp-Source: ABdhPJzV+khEmukX9u9IZT8V3dKyPVE/cHwK2zjntBCrwhoIf+Y6m6AZE8SiynQaSgbYoc56GZrHKw== X-Received: by 2002:a05:620a:1423:: with SMTP id k3mr13988173qkj.311.1627234856614; Sun, 25 Jul 2021 10:40:56 -0700 (PDT) Received: from [10.0.0.137] (modemcable232.217-160-184.mc.videotron.ca. [184.160.217.232]) by smtp.gmail.com with ESMTPSA id x28sm14981306qtm.71.2021.07.25.10.40.55 for <49582@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jul 2021 10:40:56 -0700 (PDT) References: From: Justin Veilleux Message-ID: Date: Sun, 25 Jul 2021 13:40:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------C1370AA07B76BFFC3F9A7056" Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 25 Jul 2021 14:07:39 -0400 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627236466; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=0oHKuDwEnXkj10AV+PX5z+aUytUkSQBOaSDZ0QMJgxM=; b=uriYpDcl2l8GZi9fbZ4SLteeUl2j0w/DOaIvA5Qe+eKldX7/TT5okg+a1FuxZVcqpPC/Pa xCC6ObOWdDqgeNQa+3J6/aUWZOnyqSKWfn41t3tG6Q/38vF+CzCHyTR+l/Yqs4lXbHNK2T 1wW4Ly4Tlk5SQN9Og14Sm5fDDAfiJufnt1ufc9/cOkyS73t2iyL7DSW4mduCNAU/5Tkh7P IFrYYXgpZtYw7sDbIUARMiWnyzOKu2XFzhHbcu2DV/qImuAHwCSEZ2jv3ZdYhQ52ryEmr7 knWr2UAvNrc3zS555nyll47IGzwoSmfhZtdrfwOC74j88EyjnJsiZc5ktEplmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627236466; a=rsa-sha256; cv=none; b=Jip087nM7D/t/+5Q5xUHaLWvHlgQXFjblLrlRuxzDXXeETPX9wvDIH4yvMv0QsBja/ilOj fvQqHGJqmiCaFZWclsmfzGTz6vlNn7kceLxBOPF+GVJcwmn7ZgSKajZEENrxn7nB6N9bHr vslumgT0DpgVgxWbK9xeIgYsGAxHAC8TW8jnf1KsSOwzigflioWXEwnAmwujcQw7EN+pQc JkXnys/jubdJgjg4mn71Tdh3NoAcGONCN/SeQj4B2np7l6yUkFYZ11PCNvXMVpB689+nKz nhJMxbGjuwtK6a7pFO7OI4suYaiVn/gZ+OQYy9Q0iW+2CI61ltmdS4DRcRvkDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YY3GDG38; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=YY3GDG38; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Migadu-Queue-Id: A18888B3E X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7OGgBzlriic4 This is a multi-part message in MIME format. --------------C1370AA07B76BFFC3F9A7056 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I've attached a patch in which I've changed bash and coreutils for bash-minimal and coreutils-minimal. Also, since every package in `inputs` was actually just a build dependency, I've moved them all to `native-inputs`. I've tested `./pre-inst-env guix build tosdr-chromium --target=aarch64-linux-gnu`, but since everything is a native input, it gives out the exact same derivation. --------------C1370AA07B76BFFC3F9A7056 Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-tosdr-chromium.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-gnu-Add-tosdr-chromium.patch" >From ff40ed3410aaa8bebb310e8803fe36bc4821ca77 Mon Sep 17 00:00:00 2001 From: terramorpha Date: Sun, 25 Jul 2021 13:04:49 -0400 Subject: [PATCH] gnu: Add tosdr-chromium. * gnu/packages/browser-extensions.scm (tosdr, tosdr-chromium): New variables. --- 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-extensions.scm index a6120baf96..017b831d8a 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 © 2020, 2021 Marius Bakke +;;; Copyright © 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)) (define play-to-kodi (package @@ -121,3 +126,46 @@ ungoogled-chromium.") (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))) + (native-inputs + `(("bash" ,bash-minimal) + ("coreutils" ,coreutils-minimal) + ("node" ,node) + ("zip" ,zip) + ("unzip" ,unzip))) + (arguments + `(#:builder + (begin + (use-modules (guix build utils)) + (set-path-environment-variable "PATH" + '("bin") + (map cdr %build-inputs)) + (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 online by +showing an unintrusive icon in the toolbar. You can click on this icon to 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)) -- 2.31.1 --------------C1370AA07B76BFFC3F9A7056--