From patchwork Wed Feb 19 19:26:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: guix-patches--- via X-Patchwork-Id: 40205 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 76A8127BBE9; Sat, 15 Mar 2025 15:54:40 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 37D1727BBE2 for ; Sat, 15 Mar 2025 15:54:38 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ttTpw-0004UA-Dr; Sat, 15 Mar 2025 11:54:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ttTps-0004SS-Bs for guix-patches@gnu.org; Sat, 15 Mar 2025 11:54:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ttTpq-0005um-SG for guix-patches@gnu.org; Sat, 15 Mar 2025 11:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=b2UjCy497/37+D6pOTAQywitqF6tV7iU6Eq2zw8IuVs=; b=dWOzbXFrrB6YGcOo8Dre0BVhfmaaxlh0BYkOBoHIA2mbyD3Nwp+uUxBcClzX5EP16y9dwN2Gkh1MATekTxhJ1tAJRJx7q3YSHT5klmlYg+dCbBZ5l2+0m56EZBAdiDDxXZPwZbEINPMYOo7WE83FpvzBUPuNNlcZ3YewS6oKYZmjh49pKF+gxWzP9WSgjf8vkMozzZJyitwQKO3T3sVpJLOhAVHva68UoM0vx0iSgpP+mDHRvlhmcCyLVWw9cZKIvPGckV02n6ABXafGgcCIdetW3UrtrNKFJ0IChWkrWm2KsTSviT3w4/AypOaufXfIM65v8AykJaXGII3RvhsnnQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ttTpq-0000V0-N2 for guix-patches@gnu.org; Sat, 15 Mar 2025 11:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#76420] [PATCH v2] gnu: Add canvasblocker/icecat. References: <87ecztrb0k.fsf@ngraves.fr> In-Reply-To: <87ecztrb0k.fsf@ngraves.fr> Resent-From: ngraves@ngraves.fr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 Mar 2025 15:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76420 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76420@debbugs.gnu.org Received: via spool by 76420-submit@debbugs.gnu.org id=B76420.17420540131797 (code B ref 76420); Sat, 15 Mar 2025 15:54:02 +0000 Received: (at 76420) by debbugs.gnu.org; 15 Mar 2025 15:53:33 +0000 Received: from localhost ([127.0.0.1]:43205 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ttTpL-0000Sm-Sh for submit@debbugs.gnu.org; Sat, 15 Mar 2025 11:53:33 -0400 Received: from 10.mo581.mail-out.ovh.net ([178.33.250.56]:59575) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ttTpG-0000Rn-QW for 76420@debbugs.gnu.org; Sat, 15 Mar 2025 11:53:29 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.140.200]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 4ZFQkX5F0vz1KG5 for <76420@debbugs.gnu.org>; Sat, 15 Mar 2025 15:53:24 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-48h5b (unknown [10.110.188.182]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 760771FE52 for <76420@debbugs.gnu.org>; Sat, 15 Mar 2025 15:53:24 +0000 (UTC) Received: from ngraves.fr ([37.59.142.103]) by ghost-submission-5b5ff79f4f-48h5b with ESMTPSA id xit1AXSi1WexZCUAzjJ9yg (envelope-from ) for <76420@debbugs.gnu.org>; Sat, 15 Mar 2025 15:53:24 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-103G005fd4498a8-9ac9-4aa4-ac72-b532268b54a7, FAC1D57B789B34147A5C4AF8863FF39AF36B6394) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 90.92.117.144 Date: Wed, 19 Feb 2025 20:26:06 +0100 Message-ID: <87zfhm8f4c.fsf@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 11705981332590879267 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 21 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufeegudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucffrghtvgcuihhnuchprghsthculddvuddmnecujfgurhephffvufffkfggtgesthdtredttddttdenucfhrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrnecuggftrfgrthhtvghrnheptefgieffffdvudejkeeutdegtdehfedujeefgeeggeejjeekhfeghfdtveeiieeunecuffhomhgrihhnpehgihhthhhusgdrtghomhdpfhhrohhmrdhtohholhhsnecukfhppeduvdejrddtrddtrddupdeltddrledvrdduudejrddugeegpdefjedrheelrddugedvrddutdefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejieegvddtseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkedumgdpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=b2UjCy497/37+D6pOTAQywitqF6tV7iU6Eq2zw8IuVs=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1742054004; v=1; b=OPdAybGQ2NE1XFOfCZDMRYtZGtpJASElUOJ4dsysv2wDi5Zhzp0H+/18NjM76TnMOPS9gOlj Dh9YICxA8IIafvKNNyjvqjWqgU2586eQlZZOeo4sx/eX30+AaIKU40ILcp3rYghCx8mZBG6CmbG 0THz3EduaHhLe/+nZNvt4liHZ5yyWLEwiD7NeIJ8W7o2So8DXLojVPsiYe57cvdheVLK7bmpSqO eRhuvHhVJSypP9WHr1CO38lAe1KXKzu6zwCaYcvrRLoXDjjNa0p7ItQ2pJK5xh1H6N/oJKxNErE 4KHJFK20+rS6Apfc1q9m03lxD+jPC9pwVTTrlaz1BHTTg== 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: , Reply-to: ngraves@ngraves.fr X-ACL-Warn: , ngraves--- via Guix-patches X-Patchwork-Original-From: ngraves--- via Guix-patches via From: guix-patches--- via Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/browser-extensions.scm (canvasblocker/icecat): New variable. --- gnu/packages/browser-extensions.scm | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/browser-extensions.scm b/gnu/packages/browser-extensions.scm index 01ef0b49be..9596194e36 100644 --- a/gnu/packages/browser-extensions.scm +++ b/gnu/packages/browser-extensions.scm @@ -61,6 +61,55 @@ (define adaptive-tab-bar-colour (define-public adaptive-tab-bar-colour/icecat (make-icecat-extension adaptive-tab-bar-colour)) +(define canvasblocker + (package + (name "canvasblocker") + (version "1.11") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kkapsner/CanvasBlocker") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "16mhvk7swbkmb24smkv1c147brb0mm2nfaxqw2dq43sl7ncasf32")) + (modules '((guix build utils) (ice-9 match) (ice-9 ftw))) + (snippet + #~(begin + (for-each delete-file + '("canvasblocker.xpi" "package-lock.json")) + ;; Delete all hidden files/directories except .tools. + (for-each + (match-lambda + ((or "." ".tools" ".." + (? (lambda (name) + (not (string-prefix? "." name))))) + #t) + ((? file-is-directory? dir) + (delete-file-recursively dir)) + (file + (delete-file file))) + (scandir ".")))))) + (build-system copy-build-system) + (properties '((addon-id . "CanvasBlocker@kkapsner.de"))) + (arguments + (list + #:install-plan ;deduced from .tools/build.js + #~'(("." #$(assq-ref properties 'addon-id) + #:exclude ("crowdin.yml" "package.json" "releaseNotes.txt") + #:exclude-regexp ("test/.*" "versions/.*" ".tools/*"))))) + (home-page "https://github.com/kkapsner/CanvasBlocker") + (synopsis "Firefox extension to protect from being figerprinted") + (description "This extension allows users to prevent websites from using +some Javascript APIs to fingerprint them. Users can choose to block the APIs +entirely on some or all websites (which may break some websites) or just block +or fake its fingerprinting-friendly readout API.") + (license license:mpl2.0))) + +(define-public canvasblocker/icecat + (make-icecat-extension canvasblocker)) + (define play-to-kodi (package (name "play-to-kodi")