add zotero

This commit is contained in:
Yan Lin 2025-12-06 12:58:16 +01:00
parent 2cfa6b704e
commit e80035cb2b
3 changed files with 21 additions and 3 deletions

View file

@ -3,13 +3,29 @@ args:
{
packages = let
firefox-addons = args.firefox-addons or null;
pkgs = args.pkgs;
system = pkgs.stdenv.hostPlatform.system;
buildFirefoxXpiAddon = firefox-addons.lib.${system}.buildFirefoxXpiAddon or null;
zotero-connector = if buildFirefoxXpiAddon != null then
buildFirefoxXpiAddon {
pname = "zotero-connector";
version = "5.0.193";
addonId = "zotero@chnm.gmu.edu";
url = "https://download.zotero.org/connector/firefox/release/Zotero_Connector-5.0.193.xpi";
sha256 = "jQLtVkFeRDZ8IiVGRKFcJ5b6AncXHnLuM5TS8vaAiQY=";
meta = {};
}
else null;
in
if firefox-addons != null then
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [
(if firefox-addons != null then
with firefox-addons.packages.${system}; [
ublock-origin
vimium
cookies-txt
darkreader
]
else [];
else [])
++ (if zotero-connector != null then [ zotero-connector ] else []);
}

View file

@ -57,5 +57,6 @@
chromium
localsend
calibre
zotero
];
}

View file

@ -40,6 +40,7 @@
"omnigraffle"
"tailscale-app"
"typora"
"zotero"
];
taps = [
# Additional repositories if needed