all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sarah Morgensen <iskarian@mgsn.dev>
To: Justin Veilleux <justun1011@gmail.com>
Cc: 49582@debbugs.gnu.org
Subject: bug#49582: [PATCH] gnu: Add tosdr-chromium.
Date: Sat, 24 Jul 2021 18:24:45 -0700	[thread overview]
Message-ID: <86k0lfp4ma.fsf@mgsn.dev> (raw)
In-Reply-To: <CAJppLC8TJTzf157uLQc5C3wOJvq6XRxRG_TDPdppqOGw6krkpw@mail.gmail.com> (Justin Veilleux's message of "Thu, 15 Jul 2021 14:06:57 -0400")

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 <justun1011@gmail.com> writes:

> this patch adds the tos;dr initiative's extension
>
> From c6881b9b065cf2a85b604c8a1e5ddbae77822034 Mon Sep 17 00:00:00 2001
> From: terramorpha <terramorpha@cock.li>
> Date: Thu, 15 Jul 2021 14:03:19 -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..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 © 2020, 2021 Marius Bakke <marius@gnu.org>
> +;;; Copyright © 2021 Justin Veilleux <terramorpha@cock.li>
>  ;;;
>  ;;; 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)))
> +    (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 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))

--
Sarah




  reply	other threads:[~2021-07-25  1:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-15 18:06 bug#49582: [PATCH] gnu: Add tosdr-chromium Justin Veilleux
2021-07-25  1:24 ` Sarah Morgensen [this message]
2021-07-25 15:40 ` [bug#49582] " Maxime Devos
2021-07-25 17:40   ` Justin Veilleux
2021-07-25 18:04   ` Justin Veilleux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86k0lfp4ma.fsf@mgsn.dev \
    --to=iskarian@mgsn.dev \
    --cc=49582@debbugs.gnu.org \
    --cc=justun1011@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.