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 packages = let
firefox-addons = args.firefox-addons or null; 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 in
if firefox-addons != null then (if firefox-addons != null then
with firefox-addons.packages.${args.pkgs.stdenv.hostPlatform.system}; [ with firefox-addons.packages.${system}; [
ublock-origin ublock-origin
vimium vimium
cookies-txt cookies-txt
darkreader darkreader
] ]
else []; else [])
++ (if zotero-connector != null then [ zotero-connector ] else []);
} }

View file

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

View file

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