migrate from yomichan to yomitan

This commit is contained in:
jacekpoz 2024-07-10 23:15:29 +02:00
parent ca75ed0fc1
commit 20eee01a7f
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -12,38 +12,6 @@
inherit (lib.types) attrsOf listOf str submodule;
inherit (lib.attrsets) mapAttrs mapAttrsToList;
buildFirefoxXpiAddon = lib.makeOverridable ({
stdenv ? pkgs.stdenv,
fetchurl ? pkgs.fetchurl,
pname,
version,
addonId,
url,
sha256,
...
}:
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {inherit url sha256;};
preferLocalBuild = true;
allowSubstitutes = true;
buildCommand = ''
dst="$out/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9397384}"
mkdir -p "$dst"
install -v -m644 "$src" "$dst/${addonId}.xpi"
'';
});
extra-addons = {
yomichan = buildFirefoxXpiAddon {
pname = "yomichan";
version = "20.5.22.1";
addonId = "{a9226ee9-7998-47bd-b72e-a1b56df7f77b}";
url = "https://addons.mozilla.org/firefox/downloads/file/3585060/yomichan-20.5.22.1.xpi";
sha256 = "sha256-/icvPD/nCJYS31owfYMD25QzFjsxAqapy/UAehhxsy8=";
};
};
searxng-name = "NotASearx";
searxng = {
@ -177,7 +145,7 @@ in {
keepassxc-browser
redirector
auto-tab-discard
extra-addons.yomichan
yomitan
];
settings = {
"browser.aboutConfig.showWarning" = false;
@ -428,7 +396,7 @@ in {
darkreader
keepassxc-browser
auto-tab-discard
extra-addons.yomichan
yomitan
];
settings = {
"browser.aboutConfig.showWarning" = false;