From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 25 13:41:05 2021 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) Subject: Re: bug#49582: [PATCH] gnu: Add tosdr-chromium. To: 49582@debbugs.gnu.org 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-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: 49582 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.8 (/) 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--