From 27c8879429b79a10891c4568e6b5e0a6880b770d Mon Sep 17 00:00:00 2001 From: buffet Date: Tue, 2 May 2023 12:17:29 +0200 Subject: [PATCH] feat(firefox): add yomitan --- programs/firefox.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/programs/firefox.nix b/programs/firefox.nix index 79e2516..225af87 100644 --- a/programs/firefox.nix +++ b/programs/firefox.nix @@ -1,5 +1,6 @@ { config, + lib, pkgs, ... }: { @@ -8,12 +9,28 @@ enable = true; package = pkgs.firefox-wayland; - extensions = with config.nur.repos.rycee.firefox-addons; [ + extensions = with config.nur.repos.rycee.firefox-addons; + let + # TODO: switch to yomitan + yomichan = buildFirefoxXpiAddon { + pname = "yomichan"; + version = "20.5.22.1"; + addonId = "alex@foosoft.net"; + url = "https://addons.mozilla.org/firefox/downloads/file/3585060/yomichan-20.5.22.1.xpi"; + sha256 = "sha256-/icvPD/nCJYS31owfYMD25QzFjsxAqapy/UAehhxsy8="; + meta = with lib; { + description = "Yomichan turns your browser into a tool for building Japanese language literacy by helping you to decipher texts which would be otherwise too difficult tackle. It features a robust dictionary with EPWING and flashcard creation support."; + license = licenses.gpl3; + platforms = platforms.all; + }; + }; + in [ bitwarden i-dont-care-about-cookies refined-github sidebery ublock-origin + yomichan ]; profiles."buffet" = {